mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-17 20:04:36 -04:00
Default value for public_baseurl
(#11210)
We might as well use a default value for `public_baseurl` based on `server_name` - in many cases, it will be correct.
This commit is contained in:
parent
556a488209
commit
86a497efaa
16 changed files with 62 additions and 73 deletions
|
@ -34,8 +34,7 @@ class WellKnownBuilder:
|
|||
self._config = hs.config
|
||||
|
||||
def get_well_known(self) -> Optional[JsonDict]:
|
||||
# if we don't have a public_baseurl, we can't help much here.
|
||||
if self._config.server.public_baseurl is None:
|
||||
if not self._config.server.serve_client_wellknown:
|
||||
return None
|
||||
|
||||
result = {"m.homeserver": {"base_url": self._config.server.public_baseurl}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue