Compare commits

...

2 commits

Author SHA1 Message Date
99a68c1578
configure csrf trusted origins
All checks were successful
Build and Deploy Staging / build (push) Successful in 47s
Build and Deploy Staging / deploy (push) Successful in 7s
2025-03-21 14:59:37 +01:00
65d60bf17c
no kubernetes probes during development 2025-03-21 14:59:12 +01:00
2 changed files with 1 additions and 11 deletions

View file

@ -21,17 +21,6 @@ spec:
- name: servala
image: servala-2nkgm.app.codey.ch/servala/servala-portal:latest
imagePullPolicy: Always
readinessProbe:
httpGet:
path: /admin/
port: 8080
periodSeconds: 60
livenessProbe:
httpGet:
path: /admin/
port: 8080
periodSeconds: 60
initialDelaySeconds: 5
ports:
- name: http
containerPort: 8080

View file

@ -26,6 +26,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
ALLOWED_HOSTS = []
if allowed_hosts := os.environ.get("SERVALA_ALLOWED_HOSTS"):
ALLOWED_HOSTS = allowed_hosts.split(",")
CSRF_TRUSTED_ORIGINS = [f"https://{h}" for h in ALLOWED_HOSTS]
db_name = os.environ.get("SERVALA_DB_NAME", "")
if SERVALA_ENVIRONMENT == "development" and not db_name: