mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 21:28:24 -04:00
remove dups
This commit is contained in:
@@ -170,13 +170,13 @@ def _csp(config):
|
|||||||
"https://dap.digitalgov.gov",
|
"https://dap.digitalgov.gov",
|
||||||
"https://cdn.socket.io",
|
"https://cdn.socket.io",
|
||||||
],
|
],
|
||||||
"connect-src": [
|
"connect-src": list(dict.fromkeys([
|
||||||
"'self'",
|
"'self'",
|
||||||
"https://gov-bam.nr-data.net",
|
"https://gov-bam.nr-data.net",
|
||||||
"https://www.google-analytics.com",
|
"https://www.google-analytics.com",
|
||||||
f"{api_public_url}",
|
f"{api_public_url}",
|
||||||
f"{api_public_ws_url}",
|
f"{api_public_ws_url}",
|
||||||
],
|
])),
|
||||||
"style-src": ["'self'", asset_domain],
|
"style-src": ["'self'", asset_domain],
|
||||||
"img-src": ["'self'", asset_domain],
|
"img-src": ["'self'", asset_domain],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ class Config(object):
|
|||||||
NOTIFY_APP_NAME = "admin"
|
NOTIFY_APP_NAME = "admin"
|
||||||
NOTIFY_ENVIRONMENT = getenv("NOTIFY_ENVIRONMENT", "development")
|
NOTIFY_ENVIRONMENT = getenv("NOTIFY_ENVIRONMENT", "development")
|
||||||
API_HOST_NAME = getenv("API_HOST_NAME", "localhost")
|
API_HOST_NAME = getenv("API_HOST_NAME", "localhost")
|
||||||
API_PUBLIC_URL = getenv("API_PUBLIC_URL", "http://localhost")
|
API_PUBLIC_URL = getenv("API_PUBLIC_URL", "localhost")
|
||||||
API_PUBLIC_WS_URL = getenv("API_PUBLIC_WS_URL", "ws://localhost")
|
API_PUBLIC_WS_URL = getenv("API_PUBLIC_WS_URL", "localhost")
|
||||||
|
|
||||||
ADMIN_BASE_URL = getenv("ADMIN_BASE_URL", "http://localhost:6012")
|
ADMIN_BASE_URL = getenv("ADMIN_BASE_URL", "http://localhost:6012")
|
||||||
HEADER_COLOUR = "#81878b" # mix of dark-grey and mid-grey
|
HEADER_COLOUR = "#81878b" # mix of dark-grey and mid-grey
|
||||||
|
|||||||
Reference in New Issue
Block a user