oops
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-12-05 18:00:50 +01:00
parent 4a7bd11324
commit 1fc1e2b639
3 changed files with 4 additions and 1 deletions

View File

@ -16,4 +16,4 @@ COPY ./src .
EXPOSE 8080
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8080", "--workers", "1", "--threads", "1", "app:app"]
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8080", "--workers", "4", "--threads", "1", "app:app"]

View File

@ -11,6 +11,7 @@ data:
RELEASE_ID: kmlabz-k8s
RELEASEMODE: release
JWT_SECRET_KEY: hzukalkhsdgsbnakdjaksdghikyxbhhatzig
REGISTER_DISABLED: "False"
SQLALCHEMY_DATABASE_URI: postgresql://username:password@server/database?sslmode=require
---
apiVersion: apps/v1

View File

@ -20,3 +20,5 @@ RELEASEMODE = os.environ.get("RELEASEMODE", "dev")
SQLALCHEMY_DATABASE_URI = os.getenv("SQLALCHEMY_DATABASE_URI", "sqlite://")
JWT_SECRET_KEY = os.getenv("JWT_SECRET_KEY", str(uuid4()))
REGISTER_DISABLED = os.getenv("REGISTER_DISABLED", "FALSE").upper() == "TRUE"