w0bm goes docker
This commit is contained in:
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