示例#1
0
 def forbidden_defaults(self) -> List[ForbiddenDefault]:
     return [
         *super().forbidden_defaults,
         ForbiddenDefault("appservice.database",
                          "postgres://*****:*****@hostname/db"),
         ForbiddenDefault("bridge.permissions",
                          ForbiddenKey("example.com")),
     ]
示例#2
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"))
     ]
示例#3
0
 def forbidden_defaults(self) -> List[ForbiddenDefault]:
     return [
         *super().forbidden_defaults,
         ForbiddenDefault("appservice.database", "postgres://*****:*****@hostname/db"),
         ForbiddenDefault("appservice.public.external", "https://example.com/public",
                          condition="appservice.public.enabled"),
         ForbiddenDefault("bridge.permissions", ForbiddenKey("example.com"))
     ]
示例#4
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"),
     ]