feat: update Mattermost proxy configuration and documentation for improved clarity and default behavior

This commit is contained in:
2026-05-19 16:15:48 -06:00
parent b886c61afd
commit 3816487bec
4 changed files with 41 additions and 4 deletions

View File

@@ -147,7 +147,11 @@ class MattermostMirror:
host = host.lower()
if self.host_allow:
return host == self.host_allow or host.endswith(f".{self.host_allow}")
return "mattermost" in host
# The launched Mattermost Desktop app is already scoped to this proxy.
# Some company hosts do not include "mattermost" in the hostname
# (for example, mm.example.com), so default to allowing the proxied
# app's /api/v4 traffic when no explicit host allowlist is configured.
return True
def _is_allowed_channel(self, channel_id: str | None) -> bool:
if not self.channel_allow: