Compare commits
2 commits
294e3ae732
...
99a68c1578
Author | SHA1 | Date | |
---|---|---|---|
99a68c1578 | |||
65d60bf17c |
2 changed files with 1 additions and 11 deletions
|
@ -21,17 +21,6 @@ spec:
|
||||||
- name: servala
|
- name: servala
|
||||||
image: servala-2nkgm.app.codey.ch/servala/servala-portal:latest
|
image: servala-2nkgm.app.codey.ch/servala/servala-portal:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /admin/
|
|
||||||
port: 8080
|
|
||||||
periodSeconds: 60
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /admin/
|
|
||||||
port: 8080
|
|
||||||
periodSeconds: 60
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
|
|
|
@ -26,6 +26,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = []
|
||||||
if allowed_hosts := os.environ.get("SERVALA_ALLOWED_HOSTS"):
|
if allowed_hosts := os.environ.get("SERVALA_ALLOWED_HOSTS"):
|
||||||
ALLOWED_HOSTS = allowed_hosts.split(",")
|
ALLOWED_HOSTS = allowed_hosts.split(",")
|
||||||
|
CSRF_TRUSTED_ORIGINS = [f"https://{h}" for h in ALLOWED_HOSTS]
|
||||||
|
|
||||||
db_name = os.environ.get("SERVALA_DB_NAME", "")
|
db_name = os.environ.get("SERVALA_DB_NAME", "")
|
||||||
if SERVALA_ENVIRONMENT == "development" and not db_name:
|
if SERVALA_ENVIRONMENT == "development" and not db_name:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue