diff --git a/src/charm.py b/src/charm.py index 7e6c9c71..5ad75c6c 100755 --- a/src/charm.py +++ b/src/charm.py @@ -84,6 +84,7 @@ def __init__(self, *args: typing.Any) -> None: charm=self, relation_name=INGRESS_INTEGRATION_NAME, port=synapse.SYNAPSE_NGINX_PORT, + strip_prefix=True, ) self._observability = Observability(self) self._mjolnir = Mjolnir(self, token_service=self.token_service) diff --git a/tests/unit/test_charm.py b/tests/unit/test_charm.py index 31830cf4..057a37a0 100644 --- a/tests/unit/test_charm.py +++ b/tests/unit/test_charm.py @@ -175,6 +175,7 @@ def test_traefik_integration(harness: Harness) -> None: "model": f'"{model_name}"', "name": f'"{app_name}"', "port": str(synapse.SYNAPSE_NGINX_PORT), + "strip-prefix": "true", }