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',
|
||||
)
|
||||
|
||||
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_USER = os.environ.get('DJANGO_POSTGRES_USER')
|
||||
|
||||
@ -18,6 +18,9 @@ spec:
|
||||
- name: SERVER_ZITADEL_ENABLED
|
||||
value:
|
||||
_default: "True"
|
||||
- name: DJANGO_HOST
|
||||
value:
|
||||
_default: "https://sarex.uralmine.com"
|
||||
- name: DJANGO_SETTINGS_MODULE
|
||||
value:
|
||||
_default: config.settings.production
|
||||
|
||||
@ -14,6 +14,10 @@ spec:
|
||||
cpu: null
|
||||
memory: null
|
||||
envs:
|
||||
- name: DJANGO_HOST
|
||||
value:
|
||||
_default: "https://sarex.local.uralkali.com"
|
||||
|
||||
- name: ALLOWED_HOSTS
|
||||
value:
|
||||
_default: "*"
|
||||
|
||||
@ -9,6 +9,10 @@ spec:
|
||||
services:
|
||||
backend:
|
||||
envs:
|
||||
- name: DJANGO_HOST
|
||||
value:
|
||||
_default: "https://sarex.vadroad.ru"
|
||||
|
||||
- name: ALLOWED_HOSTS
|
||||
value:
|
||||
_default: "*"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user