allow overriding media endpoint

This commit is contained in:
James Ravenscroft 2023-08-20 18:14:02 +01:00
parent 8cc5482422
commit 6dcf787c4f
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ def media_endpoint():
def generate_config_json(): def generate_config_json():
return { return {
"media-endpoint": request.base_url + "media", "media-endpoint": os.environ.get(f"MICROCOSM_BASE_URL", request.base_url) + "media",
"syndicate-to": get_syndication_targets(), "syndicate-to": get_syndication_targets(),
"post-types": [ "post-types": [
{ {