Skip to content

Commit

Permalink
update nginx redirect for API
Browse files Browse the repository at this point in the history
  • Loading branch information
mosesmc52 committed Feb 26, 2022
1 parent 0572a56 commit 0486308
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nginx/vhost.d/default
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ location /static/ {
proxy_pass http://frontend:3000;
}

location /admin/ {
location ~ ^/(admin|v1)/ {
proxy_pass http://backend:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}

0 comments on commit 0486308

Please sign in to comment.