Skip to content

Commit

Permalink
repaired nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNi245 committed May 23, 2024
1 parent b08d547 commit f3c6f0d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ http {
keepalive_timeout 65;
gzip on;
gzip_types text/plain application/xml text/css application/javascript;
worker_processes auto;


limit_req_zone $binary_remote_addr zone=standardlimit:10m rate=20r/s;
limit_req_zone $binary_remote_addr zone=legacylimit:10m rate=20r/s;

server {
listen 80;
listen 443 ssl http2;
server_name ${TARGET_HOST};
server_name 134.122.95.165;

location / {
limit_req zone=standardlimit burst=50;
Expand All @@ -23,7 +22,7 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_redirect off;
}

Expand All @@ -35,7 +34,7 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_redirect off;
}

Expand All @@ -47,7 +46,7 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_redirect off;
}

Expand All @@ -59,7 +58,7 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_redirect off;
}

Expand Down

0 comments on commit f3c6f0d

Please sign in to comment.