Skip to content

Commit

Permalink
fix: Remove SERVER_MODE
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Jun 11, 2024
1 parent 6ce5f7a commit aead1e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions k8s/ietfweb/django-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ kind: ConfigMap
metadata:
name: django-config
data:
# n.b., these are debug values / non-secret secrets
IETFWWW_SERVER_MODE: "development" # development for staging, production for production
IETFWWW_ADMINS: |-
Robert Sparks <[email protected]>
Kesara Rathnayake <[email protected]>
Expand Down
3 changes: 0 additions & 3 deletions k8s/ietfweb/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ def _multiline_to_list(s):
EMAIL_HOST = os.environ.get("IETFWWW_EMAIL_HOST", "localhost")
EMAIL_PORT = int(os.environ.get("IETFWWW_EMAIL_PORT", "2025"))

# Default to "development". Production _must_ set IETFWWW_SERVER_MODE="production" in the env!
SERVER_MODE = os.environ.get("IETFWWW_SERVER_MODE", "development")

# Secrets
_SECRET_KEY = os.environ.get("IETFWWW_DJANGO_SECRET_KEY", None)
if _SECRET_KEY is not None:
Expand Down

0 comments on commit aead1e0

Please sign in to comment.