django: take HOST from DJANGO_HOST
The base django-configmap hardcoded HOST to the yc-k8s-test domain, and every cluster inheriting it got that value. HOST now reads DJANGO_HOST with the old value as the default; backend in vad, uralkal and d8-ugmk-prod sets its own public host. celery is left on the default.
This commit is contained in:
parent
653a95cd6b
commit
7f48b1ad0d
@ -87,7 +87,7 @@ data:
|
|||||||
'Bearer',
|
'Bearer',
|
||||||
)
|
)
|
||||||
|
|
||||||
HOST = "https://sarex.contour.infra.sarex.tech"
|
HOST = os.environ.get("DJANGO_HOST", "https://sarex.contour.infra.sarex.tech")
|
||||||
|
|
||||||
POSTGRES_DATABASE = os.environ.get('DJANGO_POSTGRES_DATABASE')
|
POSTGRES_DATABASE = os.environ.get('DJANGO_POSTGRES_DATABASE')
|
||||||
POSTGRES_USER = os.environ.get('DJANGO_POSTGRES_USER')
|
POSTGRES_USER = os.environ.get('DJANGO_POSTGRES_USER')
|
||||||
|
|||||||
@ -18,6 +18,9 @@ spec:
|
|||||||
- name: SERVER_ZITADEL_ENABLED
|
- name: SERVER_ZITADEL_ENABLED
|
||||||
value:
|
value:
|
||||||
_default: "True"
|
_default: "True"
|
||||||
|
- name: DJANGO_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://sarex.uralmine.com"
|
||||||
- name: DJANGO_SETTINGS_MODULE
|
- name: DJANGO_SETTINGS_MODULE
|
||||||
value:
|
value:
|
||||||
_default: config.settings.production
|
_default: config.settings.production
|
||||||
|
|||||||
@ -14,6 +14,10 @@ spec:
|
|||||||
cpu: null
|
cpu: null
|
||||||
memory: null
|
memory: null
|
||||||
envs:
|
envs:
|
||||||
|
- name: DJANGO_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://sarex.local.uralkali.com"
|
||||||
|
|
||||||
- name: ALLOWED_HOSTS
|
- name: ALLOWED_HOSTS
|
||||||
value:
|
value:
|
||||||
_default: "*"
|
_default: "*"
|
||||||
|
|||||||
@ -9,6 +9,10 @@ spec:
|
|||||||
services:
|
services:
|
||||||
backend:
|
backend:
|
||||||
envs:
|
envs:
|
||||||
|
- name: DJANGO_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://sarex.vadroad.ru"
|
||||||
|
|
||||||
- name: ALLOWED_HOSTS
|
- name: ALLOWED_HOSTS
|
||||||
value:
|
value:
|
||||||
_default: "*"
|
_default: "*"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user