Skip to content

Commit

Permalink
config: Add proxy configuration for /server/ route
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Feb 7, 2024
1 parent 0c4fb0e commit d6ecde4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nginx/custom-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ server {
}

# Proxy all other requests to the Django app
location /server/ {
proxy_pass http://server:8000;
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;
}

location / {
proxy_pass http://server:8000;
proxy_set_header Host $host;
Expand Down

0 comments on commit d6ecde4

Please sign in to comment.