Skip to content

Commit

Permalink
Merge pull request EGCETSII#53 from Villanueva-del-Trabuco-EGC/auth-s…
Browse files Browse the repository at this point in the history
…ocial/pabalvcar

[Desarrollo] [Fix] Arreglada funcionalidad de autenticación con github en Docker
  • Loading branch information
Dr-Vell authored Dec 12, 2022
2 parents cf5efc0 + f900fd7 commit 27cd828
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion decide/decide/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,6 @@
SOCIAL_AUTH_GITHUB_KEY = 'd781104d572cee72044d'
SOCIAL_AUTH_GITHUB_SECRET = 'fd224f92a08f2fd84062936c082876fc5c901cc2'

INSTALLED_APPS = INSTALLED_APPS + MODULES
USE_X_FORWARDED_HOST = True

INSTALLED_APPS = INSTALLED_APPS + MODULES
7 changes: 4 additions & 3 deletions docker/docker-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ server {
proxy_connect_timeout 500;
proxy_read_timeout 500;

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 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-Host 127.0.0.1:8000;
}

location /static {
Expand Down

0 comments on commit 27cd828

Please sign in to comment.