Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Add HTTP_REMOTE_USER in nginx conf file. Also add HTTP_REMOTE_USER in…
Browse files Browse the repository at this point in the history
… django ENV variables in docker-compose.override.yml. This so that django/nginx has a remote user when making requests. This is only for development purposes and has to be removed in prod. closes #52
  • Loading branch information
Caroline Sandsbråten authored and Caroline Sandsbråten committed Nov 4, 2018
1 parent 1065f58 commit af99ce8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- DEVELOPMENT=true
- POSTGRES_DB=fg_dev_db
- LD_LIBRARY_PATH=/usr/local/lib
- [email protected]
volumes:
- ./src/angular_frontend:/static/angular

Expand Down
1 change: 1 addition & 0 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ server {
uwsgi_param X-Real-IP $remote_addr;
uwsgi_param X-Forwarded-For $proxy_add_x_forwarded_for;
uwsgi_param X-Forwarded-Proto $http_x_forwarded_proto;
uwsgi_param HTTP_REMOTE_USER mikkesa@;
}

# hidden folders should never be accessible (.git, .vscode etc.)
Expand Down

0 comments on commit af99ce8

Please sign in to comment.