Public Access
Initial
This commit is contained in:
commit
6765ec8991
17 files changed
+825
No files matched your search
@@ -0,0 +1,54 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name ${NGINX_SERVER_NAME};
|
||||
|
||||
keepalive_timeout 70;
|
||||
client_max_body_size ${NGINX_CLIENT_MAX_BODY_SIZE};
|
||||
|
||||
root /var/www/html;
|
||||
index index.php index.html;
|
||||
|
||||
location ~* ^.+\.(jpg|jpeg|gif|css|html|htm|png|js|webp|avif|svg|mp3|ogg|mp4|mov)$ {
|
||||
access_log off;
|
||||
expires 30d;
|
||||
}
|
||||
|
||||
error_page 404 /errors/404.html;
|
||||
|
||||
location / {
|
||||
log_not_found off;
|
||||
rewrite ^(.*)$ /index.php?go=$1 last;
|
||||
}
|
||||
|
||||
location ~ ^/(system|user)/.*\.php$ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
location = /user/settings.json {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
location = /user/settings.psa {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param E2_SYNTH_URLS true;
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_index index.php;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ \.psa$ {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user