Skip to content

Commit

Permalink
Added ports to proxy_pass params
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonseraphin committed Oct 31, 2023
1 parent 577b0bc commit 0061b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions envs/staging/nginx/sites-enabled/django-app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ server {
location /api {
include /etc/nginx/uwsgi_params;
include /etc/nginx/mime.types;
proxy_pass http://web;
proxy_pass http://web:8000;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand All @@ -60,7 +60,7 @@ server {
include /etc/nginx/mime.types;
auth_basic "Authentication Required";
auth_basic_user_file /etc/apache2/.htpasswd;
proxy_pass http://app;
proxy_pass http://app:3000;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit 0061b6d

Please sign in to comment.