Merge branch 'main' of https://github.com/aaw3/hackathon-SeatStock
This commit is contained in:
Binary file not shown.
@ -27,7 +27,7 @@ SECRET_KEY = 'django-insecure---ve)lzpo4*frbw+zylax#h=frp-h5f4sx5*1-pipq&rgfl$k9
|
|||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = ['docker-django', 'localhost', 'seatstock.duckdns.org']
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
@ -86,6 +86,10 @@ DATABASES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ENV_FILE = find_dotenv()
|
||||||
|
if ENV_FILE:
|
||||||
|
load_dotenv(ENV_FILE)
|
||||||
|
|
||||||
# Password validation
|
# Password validation
|
||||||
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
|
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ services:
|
|||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ../frontend:/usr/share/nginx/html
|
- ../frontend:/usr/share/nginx/html
|
||||||
- ./volumes/nginx/config/default.conf:/etc/nginx/conf.d/default.conf:ro
|
- ./volumes/nginx/config/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
@ -19,3 +19,7 @@ services:
|
|||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- ../backend/django:/home/app/webapp
|
- ../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 {
|
location /ngxapi/transaction {
|
||||||
proxy_pass http://localhost:8000/transaction;
|
proxy_pass http://docker-django:8000/transaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /ngxapi/search {
|
location /ngxapi/search {
|
||||||
proxy_pass http://localhost:8000/search;
|
proxy_pass http://docker-django:8000/search;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /ngxapi/query_games {
|
location /ngxapi/query_games {
|
||||||
proxy_pass http://localhost:8000/query_games;
|
proxy_pass http://docker-django:8000/query_games;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /ngxapi/account {
|
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