Open kzeng273 opened 1 month ago
Header
server { listen 8080; # NGINX listens on port 8080
location / {
proxy_pass http://flask-app-service:8080; # Flask app is also running on port 8080
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;
}
}
server { listen 8080; # NGINX listens on port 8080
}