Skip to content

Commit

Permalink
Change Mjolnir configuration to use Synapse NGINX URL. (#700)
Browse files Browse the repository at this point in the history
* Change Mjolnir homeserURL to use NGINX

* Fix fmt and lint
  • Loading branch information
amandahla authored Feb 19, 2025
1 parent 0d4f5dc commit 59dda96
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/synapse/workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

from charm_state import CharmState

from .api import SYNAPSE_URL

SYNAPSE_CONFIG_DIR = "/data"

CHECK_ALIVE_NAME = "synapse-alive"
Expand Down Expand Up @@ -381,8 +379,8 @@ def _get_mjolnir_config(access_token: str, room_id: str) -> typing.Dict:
"""
with open("templates/mjolnir_production.yaml", encoding="utf-8") as mjolnir_config_file:
config = yaml.safe_load(mjolnir_config_file)
config["homeserverUrl"] = SYNAPSE_URL
config["rawHomeserverUrl"] = SYNAPSE_URL
config["homeserverUrl"] = f"http://localhost:{SYNAPSE_NGINX_PORT}"
config["rawHomeserverUrl"] = f"http://localhost:{SYNAPSE_NGINX_PORT}"
config["accessToken"] = access_token
config["managementRoom"] = room_id
return config
Expand Down

0 comments on commit 59dda96

Please sign in to comment.