Skip to content

Commit

Permalink
added api to staging nginx configuraiton
Browse files Browse the repository at this point in the history
  • Loading branch information
Suryansh5545 authored Aug 8, 2023
1 parent 4fda3aa commit 18d2214
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/prod/nodejs_v1/nginx_staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ server {
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

location /api {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://django_app;
}

location /static/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
Expand All @@ -44,4 +51,4 @@ server {
proxy_pass http://django_app;
}

}
}

0 comments on commit 18d2214

Please sign in to comment.