Add appservice.public to config in v2 update

This commit is contained in:
Tulir Asokan
2018-03-07 21:31:27 +02:00
parent 2c68bd7378
commit cf9a1f3afb
+15
View File
@@ -198,6 +198,21 @@ class Config(DictWithRecursion):
self.comment("bridge.inline_images", self.comment("bridge.inline_images",
"Use inline images instead of m.image to make rich captions possible.\n" "Use inline images instead of m.image to make rich captions possible.\n"
"N.B. Inline images are not supported on all clients (e.g. Riot iOS).") "N.B. Inline images are not supported on all clients (e.g. Riot iOS).")
if "appservice.public" not in self:
self["appservice.public.enabled"] = False
self["appservice.public.prefix"] = "/public"
self["appservice.public.external"] = "https://example.com/public"
self.comment("appservice.public",
"Public part of web server for out-of-Matrix interaction with the "
"bridge.\nUsed for things like login if the user wants to make sure the "
"2FA password isn't stored in the HS database.")
self.comment("appservice.public.enabled",
"Whether or not the public-facing endpoints should be enabled.")
self.comment("appservice.public.prefix",
"The prefix to use in the public-facing endpoints.")
self.comment("appservice.public.external",
"The base URL where the public-facing endpoints are available. The "
"prefix is not added\nimplicitly.")
if "homeserver.verify_ssl" not in self: if "homeserver.verify_ssl" not in self:
self["homeserver.verify_ssl"] = True self["homeserver.verify_ssl"] = True
self["version"] = 2 self["version"] = 2