w0bm goes docker
This commit is contained in:
22
conf/.env
Normal file
22
conf/.env
Normal file
@@ -0,0 +1,22 @@
|
||||
APP_KEY=HiH8VKcsazpxFCTWm5ir3TS9g8RmnVTR
|
||||
APP_ENV=development
|
||||
APP_DEBUG=true
|
||||
|
||||
DB_HOST=w0bm-db
|
||||
DB_PORT=3307
|
||||
DB_DATABASE=w0bm
|
||||
DB_USERNAME=w0bm
|
||||
DB_PASSWORD=w0bm
|
||||
|
||||
CACHE_DRIVER=file
|
||||
SESSION_DRIVER=file
|
||||
QUEUE_DRIVER=sync
|
||||
|
||||
RECAPTCHA_PUBLIC=
|
||||
RECAPTCHA_PRIVATE=
|
||||
|
||||
MATRIX_MAUAUTH=
|
||||
MATRIX_MAUURL=
|
||||
|
||||
# if you are developing
|
||||
SECURE_COOKIE=false
|
4
conf/entrypoint.sh
Normal file
4
conf/entrypoint.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
php-fpm7.1 -F &
|
||||
exec nginx -g "daemon off;"
|
33
conf/nginx_w0bm.conf
Normal file
33
conf/nginx_w0bm.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
server {
|
||||
listen 8080 default_server;
|
||||
server_name _;
|
||||
access_log /var/log/nginx/w0bm_access.log;
|
||||
error_log /var/log/nginx/w0bm_error.log;
|
||||
root /home/w0bm/w0bm/public;
|
||||
index index.php;
|
||||
client_max_body_size 500M;
|
||||
gzip on;
|
||||
large_client_header_buffers 4 32k;
|
||||
location ~ \.php$ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi.conf;
|
||||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
|
||||
#fastcgi_param GEOIP_ADDR $remote_addr;
|
||||
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
|
||||
}
|
||||
location ~* \.(?:css|js)$ {
|
||||
gzip on;
|
||||
expires 1y;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
location ~* \.(?:jpg|jpeg|gif|png|ico|svg)$ {
|
||||
expires 1M;
|
||||
access_log off;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user