Skip to content

Commit

Permalink
fix: add more things to the prod config (taken from the Test config)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleith committed Jul 24, 2024
1 parent 3deaeeb commit 1433d41
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,27 @@ class Test(Development):


class Production(Config):
CHECK_PROXY_HEADER = False
ADMIN_CLIENT_SECRET = os.environ.get("ADMIN_CLIENT_SECRET", "dev-notify-secret-key")
ANTIVIRUS_API_HOST = "https://test-antivirus"
ANTIVIRUS_API_KEY = "test-antivirus-secret"
API_HOST_NAME = os.environ.get("API_HOST_NAME", "http://localhost:6011")
ASSET_DOMAIN = "static.example.com"
CRM_ORG_LIST_URL = "test-domain-dot-com"
CRM_GITHUB_PERSONAL_ACCESS_TOKEN = "not-a-real-token"
DANGEROUS_SALT = os.environ.get("DANGEROUS_SALT", "dev-notify-salt")
DEBUG = True
DEBUG_KEY = "debug"
MOU_BUCKET_NAME = "test-mou"
SECRET_KEY = ["dev-notify-secret-key"]
TEMPLATE_PREVIEW_API_HOST = "http://localhost:9999"

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'TEMPLATE_PREVIEW_API_HOST' is unnecessary as it is
redefined
before this value is used.
TEMPLATE_PREVIEW_API_KEY = "dev-notify-secret-key"
TESTING = True
WTF_CSRF_ENABLED = False
GC_ARTICLES_API = "articles.alpha.canada.ca/notification-gc-notify"
FF_SALESFORCE_CONTACT = False
SYSTEM_STATUS_URL = "https://localhost:3000"

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'SYSTEM_STATUS_URL' is unnecessary as it is
redefined
before this value is used.
NO_BRANDING_ID = "0af93cf1-2c49-485f-878f-f3e662e651ef"

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'NO_BRANDING_ID' is unnecessary as it is
redefined
before this value is used.

HTTP_PROTOCOL = "https"
NOTIFY_ENVIRONMENT = "production"
NOTIFY_LOG_LEVEL = "INFO"
Expand Down

0 comments on commit 1433d41

Please sign in to comment.