Added ALLOWED_HOSTS

This commit is contained in:
ayxan 2022-10-15 00:03:43 +04:00
parent 2f76621e10
commit 76a09ca3ce
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ services:
nginx:
image: nginx
ports:
- "1337:8080"
- "80:8080"
volumes:
- ./config/nginx/local.conf:/etc/nginx/conf.d/default.conf:ro
- static_volume:/django_static

View File

@ -3,9 +3,9 @@ from .base import *
DEBUG = True
ALLOWED_HOSTS = ['*']
ALLOWED_HOSTS = ['www.series-notification.online', 'www.series-notification.online', '130.61.19.69']
CSRF_TRUSTED_ORIGINS=['http://127.0.0.1:1337']
# CSRF_TRUSTED_ORIGINS=['http://127.0.0.1:80']
DATABASES = {
'default': {