Last active
March 24, 2022 03:12
-
-
Save jeffkeller87/d9f6a711037e68f491b18434d187e973 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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