# Nginx Proxy Manager upstream config for the pawfeed-1/2/3 replicas. # See docker/SCALING-ROADMAP.md (Schritt 3). # # Paste into either: # - the pawfeed.org Proxy Host's "Advanced" tab (custom Nginx config, # applies only to that host), or # - a global snippet under /data/nginx/custom/*.conf on the NPM # container (applies to all proxy hosts — use only if the upstream # block needs to be shared). # # If using the Advanced tab, the upstream block itself typically needs to # go in a global snippet (http-context), while the proxy_pass line below # goes in that Proxy Host's Advanced tab. Verify against the NPM version in # use — the split differs slightly between NPM releases. upstream pawfeed_upstream { least_conn; server pawfeed-1:3000 max_fails=3 fail_timeout=30s; server pawfeed-2:3000 max_fails=3 fail_timeout=30s; server pawfeed-3:3000 max_fails=3 fail_timeout=30s; } # In the pawfeed.org Proxy Host, Advanced tab: # location / { # proxy_pass http://pawfeed_upstream; # proxy_set_header Host $host; # 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; # }