Limit max connections at the nginx level

This commit is contained in:
Manav Rathi 2024-03-18 15:21:47 +05:30
parent 53cf5ffc45
commit f494832bd7
No known key found for this signature in database

View file

@ -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;