Added login using auth0
This commit is contained in:
@ -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}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user