def forbidden_defaults(self) -> List[ForbiddenDefault]:
     return [
         *super().forbidden_defaults,
         ForbiddenDefault("appservice.public.external", "https://example.com/public",
                          condition="appservice.public.enabled"),
         ForbiddenDefault("bridge.permissions", ForbiddenKey("example.com"))
     ]
Exemple #2
0
 def forbidden_defaults(self) -> List[ForbiddenDefault]:
     return [
         *super().forbidden_defaults,
         ForbiddenDefault("appservice.database",
                          "postgres://*****:*****@hostname/db"),
         ForbiddenDefault("bridge.permissions",
                          ForbiddenKey("example.com")),
     ]
Exemple #3
0
 def forbidden_defaults(self) -> List[ForbiddenDefault]:
     return [
         *super().forbidden_defaults,
         ForbiddenDefault("appservice.public.external", "https://example.com/public",
                          condition="appservice.public.enabled"),
         ForbiddenDefault("bridge.permissions", ForbiddenKey("example.com")),
         ForbiddenDefault("telegram.api_id", 12345),
         ForbiddenDefault("telegram.api_hash", "tjyd5yge35lbodk1xwzw2jstp90k55qz"),
     ]