mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +00:00
templates: Add new context variables to all templates.
This adds a few new helpful context variables that we can use to compute URLs in all of our templates: * external_uri_scheme: http(s):// * server_uri: The base URL for the server's canonical name * realm_uri: The base URL for the user's realm This is preparatory work for making realm_uri != server_uri when we add support for subdomains.
This commit is contained in:
@@ -469,6 +469,7 @@ if DEVELOPMENT:
|
||||
if "EXTERNAL_API_PATH" not in vars():
|
||||
EXTERNAL_API_PATH = EXTERNAL_HOST + "/api"
|
||||
EXTERNAL_API_URI = EXTERNAL_URI_SCHEME + EXTERNAL_API_PATH
|
||||
SERVER_URI = EXTERNAL_URI_SCHEME + EXTERNAL_HOST
|
||||
|
||||
S3_KEY = get_secret("s3_key")
|
||||
S3_SECRET_KEY = get_secret("s3_secret_key")
|
||||
|
||||
Reference in New Issue
Block a user