Initial commit
This commit is contained in:
27
conf/nginx-atlantis.conf
Normal file
27
conf/nginx-atlantis.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
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";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user