kzeng273 / webappchatbot

0 stars 0 forks source link

Proxy config #1

Open kzeng273 opened 1 month ago

kzeng273 commented 1 month ago

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;
}

}

kzeng273 commented 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;
}

}