outposts: add API for default config

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-03-29 22:52:08 +02:00
parent 21ea527623
commit e5ff416c2d
5 changed files with 71 additions and 5 deletions

View File

@ -80,9 +80,9 @@ class OutpostType(models.TextChoices):
PROXY = "proxy"
def default_outpost_config():
def default_outpost_config(host: Optional[str] = None):
"""Get default outpost config"""
return asdict(OutpostConfig(authentik_host=""))
return asdict(OutpostConfig(authentik_host=host or ""))
@dataclass