move definition of zones

This commit is contained in:
einhorn_b 2024-01-24 18:28:28 +01:00
parent 0dd70db539
commit 491c09f835
4 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
include /etc/nginx/common/limit_requests.conf;
server {
if ($host = $COMMUNITY_HOST) {
return 301 https://$host$request_uri;
@ -21,7 +23,6 @@ server {
include /etc/nginx/common/protect.conf;
include /etc/nginx/common/protect_add_header.conf;
include /etc/nginx/common/limit_requests.conf;
# protect from slow loris
client_body_timeout 10s;

View File

@ -1,3 +1,5 @@
include /etc/nginx/common/limit_requests.conf;
server {
server_name $COMMUNITY_HOST;
@ -6,7 +8,6 @@ server {
include /etc/nginx/common/protect.conf;
include /etc/nginx/common/protect_add_header.conf;
include /etc/nginx/common/limit_requests.conf;
# protect from slow loris
client_body_timeout 10s;

View File

@ -1,3 +1,4 @@
include /etc/nginx/common/limit_requests.conf;
server {
if ($host = $COMMUNITY_HOST) {
@ -21,7 +22,6 @@ server {
include /etc/nginx/common/protect.conf;
include /etc/nginx/common/protect_add_header.conf;
include /etc/nginx/common/limit_requests.conf;
# protect from slow loris
client_body_timeout 10s;

View File

@ -1,3 +1,4 @@
include /etc/nginx/common/limit_requests.conf;
server {
server_name $COMMUNITY_HOST;
@ -6,7 +7,6 @@ server {
include /etc/nginx/common/protect.conf;
include /etc/nginx/common/protect_add_header.conf;
include /etc/nginx/common/limit_requests.conf;
# protect from slow loris
client_body_timeout 10s;