Skip to content

Commit

Permalink
test better nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNi245 committed May 23, 2024
1 parent f76020e commit b08d547
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ events {
}

http {
keepalive_timeout 65;
limit_req_zone $binary_remote_addr zone=standardlimit:10m rate=3r/s;
limit_req_zone $binary_remote_addr zone=legacylimit:10m rate=2r/s;
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};

location / {
Expand Down

0 comments on commit b08d547

Please sign in to comment.