w0bm goes docker

This commit is contained in:
x
2025-09-06 02:02:59 +02:00
commit e292217d0e
5 changed files with 130 additions and 0 deletions

33
conf/nginx_w0bm.conf Normal file
View 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;
}
}