Merge pull request #23 from finnie2006/NamelessMC

Update default.conf
This commit is contained in:
finnie2006 authored and GitHub committed 2022-10-04 19:18:05 +02:00
commit 0b13aa9d7c
1 file changed
+16 -3
+16 -3
View File
@@ -1,16 +1,16 @@
server { server {
listen 80; listen 2006;
server_name ""; server_name "";
#access_log /home/container/naccess.log; #access_log /home/container/naccess.log;
#error_log /home/container/nerror.log error; #error_log /home/container/nerror.log error;
root /home/container/webroot; root /home/container/webroot;
index index.html index.htm index.php; index index.php index.html;
charset utf-8; charset utf-8;
location / { location / {
try_files $uri $uri/ /index.php?$query_string; try_files $uri $uri/ /index.php?route=$uri&$args;
} }
location = /favicon.ico { access_log off; log_not_found off; } location = /favicon.ico { access_log off; log_not_found off; }
@@ -37,6 +37,19 @@ server {
fastcgi_send_timeout 300; fastcgi_send_timeout 300;
fastcgi_read_timeout 300; fastcgi_read_timeout 300;
} }
location ~ \.(tpl|cache|htaccess)$ {
return 403;
}
location ^~ /node_modules/ {
return 403;
}
location ^~ /scripts/ {
return 403;
}
location ~ /\.ht { location ~ /\.ht {
deny all; deny all;