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: data:
SENTRY_DSN: https://58bd309272c642d884ff2332c336b977@sentry.kmlabz.com/21 SENTRY_DSN: https://58bd309272c642d884ff2332c336b977@sentry.kmlabz.com/21
RELEASE_ID: kmlabz-k8s RELEASE_ID: kmlabz-k8s
VIDEON_RELEASEMODE: release RELEASEMODE: release
VIDEON_POSTGRES_HOSTNAME: videon JWT_SECRET_KEY: hzukalkhsdgsbnakdjaksdghikyxbhhatzig
VIDEON_POSTGRES_USERNAME: videon REGISTER_DISABLED: "False"
VIDEON_POSTGRES_PASSWORD: videon-verszeklet SQLALCHEMY_DATABASE_URI: postgresql://username:password@server/database?sslmode=require
VIDEON_POSTGRES_DB: videon
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment

View File

@ -15,10 +15,10 @@ __version__text__ = "1"
SENTRY_DSN = os.environ.get("SENTRY_DSN") SENTRY_DSN = os.environ.get("SENTRY_DSN")
RELEASE_ID = os.environ.get("RELEASE_ID", "test") 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://") 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"