28 lines
846 B
Plaintext
28 lines
846 B
Plaintext
events {}
|
|
http {
|
|
upstream atlantis_k8s {
|
|
server host.docker.internal:30825;
|
|
server 66.116.226.234:30825 backup;
|
|
}
|
|
|
|
server {
|
|
listen 8205;
|
|
|
|
location / {
|
|
# Proxy to Kubernetes NodePort (30825)
|
|
proxy_pass http://atlantis_k8s;
|
|
|
|
# Using $http_host and explicitly setting headers to ensure backend gets correct metadata
|
|
proxy_set_header Host $http_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;
|
|
|
|
# Connection settings
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
}
|
|
}
|