Added login using auth0

This commit is contained in:
Allen
2023-09-23 16:15:50 -05:00
parent 4bade8e5ae
commit 90f10fd303
4 changed files with 25 additions and 6 deletions

View File

@ -6,7 +6,7 @@ services:
image: nginx:latest
restart: unless-stopped
ports:
- "8080:80"
- "80:80"
volumes:
- ../frontend:/usr/share/nginx/html
- ./volumes/nginx/config/default.conf:/etc/nginx/conf.d/default.conf:ro
@ -19,3 +19,7 @@ services:
- "8000:8000"
volumes:
- ../backend/django:/home/app/webapp
environment:
- AUTH0_DOMAIN=${AUTH0_DOMAIN}
- AUTH0_CLIENT_ID=${AUTH0_CLIENT_ID}
- AUTH0_CLIENT_SECRET=${AUTH0_CLIENT_SECRET}

View File

@ -7,19 +7,30 @@ server {
location /ngxapi/transaction {
proxy_pass http://localhost:8000/transaction;
proxy_pass http://docker-django:8000/transaction;
}
location /ngxapi/search {
proxy_pass http://localhost:8000/search;
proxy_pass http://docker-django:8000/search;
}
location /ngxapi/query_games {
proxy_pass http://localhost:8000/query_games;
proxy_pass http://docker-django:8000/query_games;
}
location /ngxapi/account {
proxy_pass http://localhost:8000/account;
proxy_pass http://docker-django:8000/account;
}
location /login {
proxy_pass http://docker-django:8000/login;
proxy_set_header Host $host;
}
location /callback {
proxy_pass http://docker-django:8000/callback;
proxy_set_header Host $host;
}