Allow api.sika.sik.party
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@ deploy:production:
|
|||||||
- master
|
- master
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
url: sika.sik.party
|
url: api.sika.sik.party
|
||||||
when: manual
|
when: manual
|
||||||
variables:
|
variables:
|
||||||
DOCKER_HOST: $CI_DOCKER_HOST
|
DOCKER_HOST: $CI_DOCKER_HOST
|
||||||
|
|||||||
+2
-2
@@ -16,8 +16,8 @@ from sikweb.base import *
|
|||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = os.getenv('DEBUG', False) == 'True'
|
DEBUG = os.getenv('DEBUG', False) == 'True'
|
||||||
|
|
||||||
URL = os.getenv("HOST", "sika.sik.party")
|
URL = os.getenv("HOST", "api.sika.sik.party")
|
||||||
ALLOWED_HOSTS = ["localhost", "127.0.0.1", URL]
|
ALLOWED_HOSTS = ["localhost", "127.0.0.1", "sika.sik.party", URL]
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
ALLOWED_HOSTS = ["*"]
|
ALLOWED_HOSTS = ["*"]
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 5000:80
|
- 5000:80
|
||||||
environment:
|
environment:
|
||||||
- AUTH_BACKEND_URL=https://sika.sik.party/jwt_nginx
|
- AUTH_BACKEND_URL=https://api.sika.sik.party/jwt_nginx
|
||||||
- AUTH_LOGIN_URL=https://sika.sik.party/admin/login
|
- AUTH_LOGIN_URL=https://sika.sik.party/admin/login
|
||||||
volumes:
|
volumes:
|
||||||
- /home/sik/production/files/static:/srv
|
- /home/sik/production/files/static:/srv
|
||||||
|
|||||||
Reference in New Issue
Block a user