custom conf

This commit is contained in:
bunkerity
2020-01-03 10:21:37 +00:00
parent 5d16f6a8f2
commit 09e6b50e58
5 changed files with 19 additions and 11 deletions

5
confs/serve-files.conf Normal file
View File

@@ -0,0 +1,5 @@
root /www;
index index.html index.php;
location / {
try_files $uri $uri/ =404;
}

View File

@@ -2,12 +2,7 @@ server {
%LISTEN_HTTP%
%AUTO_LETS_ENCRYPT%
server_name %SERVER_NAME%;
root /www;
index index.html index.php;
location / {
try_files $uri $uri/ =404;
%BLOCK_TOR_EXIT_NODE%
}
%SERVE_FILES%
if ($request_method !~ ^(%ALLOWED_METHODS%)$)
{
return 405;
@@ -22,6 +17,8 @@ server {
%FEATURE_POLICY%
%BLOCK_COUNTRY%
%BLOCK_USER_AGENT%
%BLOCK_TOR_EXIT_NODE%
%COOKIE_FLAGS%
%ERRORS%
include /confs/*.conf;
}