Skip to content

Commit

Permalink
[#599] invitation and accounts proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
m-vuk committed Sep 19, 2024
1 parent 97cae95 commit bfe9e21
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config/nginx/conf.d/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@ server {
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;";

location /admin/ {
# pass requests for dynamic content to gunicorn
proxy_pass http://djangoapp:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /invitations/ {
# pass requests for dynamic content to gunicorn
proxy_pass http://djangoapp:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /accounts/ {
proxy_pass http://djangoapp:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}


location / {
Expand Down

0 comments on commit bfe9e21

Please sign in to comment.