custom conf
This commit is contained in:
5
confs/serve-files.conf
Normal file
5
confs/serve-files.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
root /www;
|
||||
index index.html index.php;
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user