fix kubernetes config
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2020-12-05 15:46:36 +01:00
parent 6404fccc8f
commit 5e8f235857
2 changed files with 7 additions and 8 deletions

View File

@ -9,11 +9,10 @@ metadata:
data:
SENTRY_DSN: https://58bd309272c642d884ff2332c336b977@sentry.kmlabz.com/21
RELEASE_ID: kmlabz-k8s
VIDEON_RELEASEMODE: release
VIDEON_POSTGRES_HOSTNAME: videon
VIDEON_POSTGRES_USERNAME: videon
VIDEON_POSTGRES_PASSWORD: videon-verszeklet
VIDEON_POSTGRES_DB: videon
RELEASEMODE: release
JWT_SECRET_KEY: hzukalkhsdgsbnakdjaksdghikyxbhhatzig
REGISTER_DISABLED: "False"
SQLALCHEMY_DATABASE_URI: postgresql://username:password@server/database?sslmode=require
---
apiVersion: apps/v1
kind: Deployment

View File

@ -15,10 +15,10 @@ __version__text__ = "1"
SENTRY_DSN = os.environ.get("SENTRY_DSN")
RELEASE_ID = os.environ.get("RELEASE_ID", "test")
RELEASEMODE = os.environ.get("VIDEON_RELEASEMODE", "dev")
RELEASEMODE = os.environ.get("RELEASEMODE", "dev")
SQLALCHEMY_DATABASE_URI = os.getenv("SQLALCHEMY_DATABASE_URI", "sqlite://")
JWT_SECRET_KEY = os.getenv("VIDEON_POSTGRES_DB", str(uuid4()))
JWT_SECRET_KEY = os.getenv("JWT_SECRET_KEY", str(uuid4()))
REGISTER_DISABLED = os.getenv("VIDEON_REGISTER_DISABLED", "FALSE").upper() == "TRUE"
REGISTER_DISABLED = os.getenv("REGISTER_DISABLED", "FALSE").upper() == "TRUE"