Skip to content

Instantly share code, notes, and snippets.

@jeffkeller87
Last active March 24, 2022 03:12
Show Gist options
  • Save jeffkeller87/d9f6a711037e68f491b18434d187e973 to your computer and use it in GitHub Desktop.
Save jeffkeller87/d9f6a711037e68f491b18434d187e973 to your computer and use it in GitHub Desktop.
# /etc/nginx/nginx.conf
worker_processes auto;
events {
worker_connections 768;
}
http {
# This controls the maximum allowed size of model input payloads
client_max_body_size 10M;
upstream plumber_api {
# Add one entry per plumber process
server localhost:8081;
server localhost:8082;
server localhost:8083;
server localhost:8084;
}
server {
listen 8080;
access_log off;
location / {
proxy_pass http://plumber_api;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment