Add portable version of Laragon
This commit is contained in:
40
bin/laragon/tpl/MariaDB.my.ini.manifest.tpl
Normal file
40
bin/laragon/tpl/MariaDB.my.ini.manifest.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
[client]
|
||||
#password=your_password
|
||||
port=3306
|
||||
socket=/tmp/mysql.sock
|
||||
|
||||
[mysqld]
|
||||
port=3306
|
||||
socket=/tmp/mysql.sock
|
||||
skip-external-locking
|
||||
key_buffer_size=256M
|
||||
max_allowed_packet=512M
|
||||
table_open_cache=256
|
||||
sort_buffer_size=1M
|
||||
read_buffer_size=1M
|
||||
read_rnd_buffer_size=4M
|
||||
myisam_sort_buffer_size=64M
|
||||
thread_cache_size=8
|
||||
query_cache_size=16M
|
||||
|
||||
log-bin=mysql-bin
|
||||
binlog_format=mixed
|
||||
|
||||
server-id=1
|
||||
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
max_allowed_packet=512M
|
||||
|
||||
[mysql]
|
||||
no-auto-rehash
|
||||
|
||||
[myisamchk]
|
||||
key_buffer_size=128M
|
||||
sort_buffer_size=128M
|
||||
read_buffer=2M
|
||||
write_buffer=2M
|
||||
|
||||
[mysqlhotcopy]
|
||||
interactive-timeout
|
||||
24
bin/laragon/tpl/MySQL.my.ini.manifest.tpl
Normal file
24
bin/laragon/tpl/MySQL.my.ini.manifest.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
[client]
|
||||
#password=your_password
|
||||
port=3306
|
||||
socket=/tmp/mysql.sock
|
||||
|
||||
[mysqld]
|
||||
port=3306
|
||||
socket=/tmp/mysql.sock
|
||||
key_buffer_size=256M
|
||||
max_allowed_packet=512M
|
||||
table_open_cache=256
|
||||
sort_buffer_size=1M
|
||||
read_buffer_size=1M
|
||||
read_rnd_buffer_size=4M
|
||||
myisam_sort_buffer_size=64M
|
||||
thread_cache_size=8
|
||||
|
||||
secure-file-priv=""
|
||||
explicit_defaults_for_timestamp=1
|
||||
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
max_allowed_packet=512M
|
||||
15
bin/laragon/tpl/Procfile.manifest
Normal file
15
bin/laragon/tpl/Procfile.manifest
Normal file
@@ -0,0 +1,15 @@
|
||||
# Format:
|
||||
; Program Name: autorun COMMANDS env_file=PATH_OF_FILE pwd=PATH_OF_WORKING_DIR ENV_VAR1=VALUE ENV_VAR2="VALUE WITH SPACE"
|
||||
|
||||
# Help:
|
||||
; Program Name: Will be displayed on Procfile or Tools' Menu (can contains space)
|
||||
; autorun: Your COMMANDS will be run automatically when Laragon starts
|
||||
; COMMANDS: A command or a series of commands (separated by & )
|
||||
; env_file: You can set environment variables directly or put them to the file
|
||||
; PWD: Current working directory - where the COMMANDS run
|
||||
|
||||
# Examples:
|
||||
; My Cool App: autorun node start $PORT PORT=9000 env_file=usr\my_file.env PWD=usr/proj/myapp DB_HOST=1.2.3.4 DB_PORT=9999 DB_USER=user DB_PASS="!$Ab.cs3cre1" DB_NAME=cooldb
|
||||
; Awesome Tool: "PATH HAS SPACES SHOULD BE QUOTED LIKE THIS"
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
27
bin/laragon/tpl/VirtualHost.SSL.manifest.tpl
Normal file
27
bin/laragon/tpl/VirtualHost.SSL.manifest.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
define ROOT "<<PROJECT_DIR>>"
|
||||
define SITE "<<HOSTNAME>>"
|
||||
|
||||
<VirtualHost *:<<PORT>>>
|
||||
DocumentRoot "${ROOT}"
|
||||
ServerName ${SITE}
|
||||
ServerAlias *.${SITE}
|
||||
<Directory "${ROOT}">
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:<<SSL_PORT>>>
|
||||
DocumentRoot "${ROOT}"
|
||||
ServerName ${SITE}
|
||||
ServerAlias *.${SITE}
|
||||
<Directory "${ROOT}">
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile <<SSL_DIR>>/<<HOSTNAME>>.crt
|
||||
SSLCertificateKeyFile <<SSL_DIR>>/<<HOSTNAME>>.key
|
||||
|
||||
</VirtualHost>
|
||||
11
bin/laragon/tpl/VirtualHost.manifest.tpl
Normal file
11
bin/laragon/tpl/VirtualHost.manifest.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
<VirtualHost *:<<PORT>>>
|
||||
DocumentRoot "<<PROJECT_DIR>>"
|
||||
ServerName <<HOSTNAME>>
|
||||
ServerAlias *.<<HOSTNAME>>
|
||||
<Directory "<<PROJECT_DIR>>">
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
# If you want to use SSL, enable it by going to Menu > Apache > SSL > Enabled
|
||||
9
bin/laragon/tpl/__easy_install__.py.manifest
Normal file
9
bin/laragon/tpl/__easy_install__.py.manifest
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from setuptools.command.easy_install import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
||||
9
bin/laragon/tpl/__pip__.py.manifest
Normal file
9
bin/laragon/tpl/__pip__.py.manifest
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from pip import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
||||
4
bin/laragon/tpl/easy_install.bat.manifest
Normal file
4
bin/laragon/tpl/easy_install.bat.manifest
Normal file
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
:: #Fix Fatal error in launcher: Unable to create process using '"'
|
||||
|
||||
python "%~dp0\__easy_install__.py" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
44
bin/laragon/tpl/mongod.conf.manifest.tpl
Normal file
44
bin/laragon/tpl/mongod.conf.manifest.tpl
Normal file
@@ -0,0 +1,44 @@
|
||||
# mongod.conf
|
||||
|
||||
# for documentation of all options, see:
|
||||
# http://docs.mongodb.org/manual/reference/configuration-options/
|
||||
|
||||
# where to write logging data.
|
||||
systemLog:
|
||||
destination: file
|
||||
logAppend: true
|
||||
path: mongod.log
|
||||
|
||||
# Where and how to store data.
|
||||
storage:
|
||||
dbPath: mongodb
|
||||
journal:
|
||||
enabled: true
|
||||
# engine:
|
||||
# mmapv1:
|
||||
# wiredTiger:
|
||||
|
||||
# how the process runs
|
||||
processManagement:
|
||||
#fork: true # fork and run in background
|
||||
pidFilePath: mongod.pid # location of pidfile
|
||||
|
||||
# network interfaces
|
||||
net:
|
||||
port: 27017
|
||||
bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces.
|
||||
|
||||
|
||||
#security:
|
||||
|
||||
#operationProfiling:
|
||||
|
||||
#replication:
|
||||
|
||||
#sharding:
|
||||
|
||||
## Enterprise-Only Options
|
||||
|
||||
#auditLog:
|
||||
|
||||
#snmp:
|
||||
39
bin/laragon/tpl/nginx.conf.manifest.tpl
Normal file
39
bin/laragon/tpl/nginx.conf.manifest.tpl
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
#user nobody;
|
||||
worker_processes 1;
|
||||
|
||||
#error_log logs/error.log;
|
||||
#error_log logs/error.log notice;
|
||||
#error_log logs/error.log info;
|
||||
|
||||
#pid logs/nginx.pid;
|
||||
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
# '$status $body_bytes_sent "$http_referer" '
|
||||
# '"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
#access_log logs/access.log main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
#keepalive_timeout 0;
|
||||
keepalive_timeout 65;
|
||||
|
||||
#gzip on;
|
||||
|
||||
include "<<LARAGON_ROOT>>/etc/nginx/php_upstream.conf";
|
||||
include "<<LARAGON_ROOT>>/etc/nginx/sites-enabled/*.conf";
|
||||
client_max_body_size 2000M;
|
||||
server_names_hash_bucket_size 64;
|
||||
}
|
||||
39
bin/laragon/tpl/nginx.server.SSL.manifest.tpl
Normal file
39
bin/laragon/tpl/nginx.server.SSL.manifest.tpl
Normal file
@@ -0,0 +1,39 @@
|
||||
server {
|
||||
listen <<PORT>>;
|
||||
listen <<SSL_PORT>> ssl;
|
||||
server_name <<HOSTNAME>> *.<<HOSTNAME>>;
|
||||
root "<<PROJECT_DIR>>";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass php_upstream;
|
||||
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||||
}
|
||||
|
||||
# Enable SSL
|
||||
ssl_certificate "<<SSL_DIR>>/<<HOSTNAME>>.crt";
|
||||
ssl_certificate_key "<<SSL_DIR>>/<<HOSTNAME>>.key";
|
||||
ssl_session_timeout 5m;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
|
||||
charset utf-8;
|
||||
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
location = /robots.txt { access_log off; log_not_found off; }
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
||||
# This file is auto-generated.
|
||||
# If you want Laragon to respect your changes, just remove the [auto.] prefix
|
||||
31
bin/laragon/tpl/nginx.server.manifest.tpl
Normal file
31
bin/laragon/tpl/nginx.server.manifest.tpl
Normal file
@@ -0,0 +1,31 @@
|
||||
server {
|
||||
listen <<PORT>>;
|
||||
server_name <<HOSTNAME>> *.<<HOSTNAME>>;
|
||||
root "<<PROJECT_DIR>>";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass php_upstream;
|
||||
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||||
}
|
||||
|
||||
|
||||
charset utf-8;
|
||||
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
location = /robots.txt { access_log off; log_not_found off; }
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
||||
# This file is auto-generated.
|
||||
# If you want Laragon to respect your changes, just remove the [auto.] prefix
|
||||
# If you want to use SSL, enable it at: Menu > Nginx > SSL > Enabled
|
||||
@@ -0,0 +1,43 @@
|
||||
server {
|
||||
listen <<PORT>> default_server;
|
||||
listen <<SSL_PORT>> ssl default_server;
|
||||
server_name localhost ;
|
||||
root "<<DOC_ROOT>>";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
# Access Restrictions
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
|
||||
include "<<LARAGON_ROOT>>/etc/nginx/alias/*.conf";
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass php_upstream;
|
||||
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||||
}
|
||||
|
||||
# Enable SSL
|
||||
ssl_certificate "<<LARAGON_ROOT>>/etc/ssl/laragon.crt";
|
||||
ssl_certificate_key "<<LARAGON_ROOT>>/etc/ssl/laragon.key";
|
||||
ssl_session_timeout 5m;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
|
||||
charset utf-8;
|
||||
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
location = /robots.txt { access_log off; log_not_found off; }
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
}
|
||||
34
bin/laragon/tpl/nginx.sites-enabled.00-default.manifest.tpl
Normal file
34
bin/laragon/tpl/nginx.sites-enabled.00-default.manifest.tpl
Normal file
@@ -0,0 +1,34 @@
|
||||
server {
|
||||
listen <<PORT>> default_server;
|
||||
server_name localhost ;
|
||||
root "<<DOC_ROOT>>";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
# Access Restrictions
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
|
||||
include "<<LARAGON_ROOT>>/etc/nginx/alias/*.conf";
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass php_upstream;
|
||||
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||||
}
|
||||
|
||||
|
||||
charset utf-8;
|
||||
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
location = /robots.txt { access_log off; log_not_found off; }
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
}
|
||||
25
bin/laragon/tpl/openssl.conf.tpl
Normal file
25
bin/laragon/tpl/openssl.conf.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
[req]
|
||||
default_bits = 2048
|
||||
distinguished_name = req_distinguished_name
|
||||
req_extensions = v3_req
|
||||
prompt = no
|
||||
|
||||
[req_distinguished_name]
|
||||
C = SG
|
||||
ST = Singapore
|
||||
L = Singapore
|
||||
O = Laragon
|
||||
OU = IT
|
||||
CN = laragon
|
||||
|
||||
[v3_req]
|
||||
keyUsage = keyEncipherment, dataEncipherment
|
||||
extendedKeyUsage = serverAuth
|
||||
subjectAltName = @alt_names
|
||||
|
||||
[alt_names]
|
||||
DNS.1 = localhost
|
||||
|
||||
# You can another DNS below. For example:
|
||||
# DNS.2 = xxx
|
||||
# DNS.3 = yyy
|
||||
4
bin/laragon/tpl/pip.bat.manifest
Normal file
4
bin/laragon/tpl/pip.bat.manifest
Normal file
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
:: #Fix Fatal error in launcher: Unable to create process using '"'
|
||||
|
||||
python "%~dp0\__pip__.py" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
1
bin/laragon/tpl/stop-mongod.bat
Normal file
1
bin/laragon/tpl/stop-mongod.bat
Normal file
@@ -0,0 +1 @@
|
||||
mongo –eval "db.getSiblingDB('admin').shutdownServer()"
|
||||
Reference in New Issue
Block a user