Limit max connections at the nginx level
This commit is contained in:
parent
53cf5ffc45
commit
f494832bd7
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
upstream museum {
|
||||
server host.docker.internal:8080 max_conns=50;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
@ -7,7 +11,7 @@ server {
|
|||
server_name api.ente.io;
|
||||
|
||||
location / {
|
||||
proxy_pass http://host.docker.internal:8080;
|
||||
proxy_pass http://museum;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
Loading…
Add table
Reference in a new issue