adding backend port env var to nginx

This commit is contained in:
2025-11-20 22:13:58 +00:00
parent dc09ddefca
commit df2beb7b1d
4 changed files with 5 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ http {
}
location /posts/ {
proxy_pass http://$BACKEND_HOST:8080/posts;
proxy_pass http://$BACKEND_HOST:$BACKEND_PORT/posts;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;