Initial commit
This commit is contained in:
23
conf/nginx-fiesta.conf
Normal file
23
conf/nginx-fiesta.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
events {}
|
||||
http {
|
||||
upstream fiesta_k8s {
|
||||
# Your main server where NodePort is exposed
|
||||
server host.docker.internal:30823;
|
||||
# Your new server acting as a backup
|
||||
server 66.116.226.234:30823 backup;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8204;
|
||||
|
||||
location / {
|
||||
# Proxy to Kubernetes NodePort (30823) for Fiesta
|
||||
proxy_pass http://fiesta_k8s;
|
||||
|
||||
proxy_set_header Host $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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user