fleet docker

This commit is contained in:
Ravi Prasad
2025-05-01 00:16:24 -05:00
parent 3a87b594de
commit 9d97283f82
10 changed files with 2543 additions and 40 deletions
+32
View File
@@ -0,0 +1,32 @@
user nginx;
events {
worker_connections 1024;
}
http {
upstream go_backend {
server api1:5000;
server api2:5000;
server api3:5000;
}
server {
listen 8080;
access_log /dev/stdout;
error_log /dev/stderr;
location / {
proxy_pass http://go_backend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
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;
}
}
}