fc851a8eff
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
30 lines
899 B
Python
30 lines
899 B
Python
"""Generate config for development"""
|
|
from yaml import safe_dump
|
|
|
|
from authentik.lib.generators import generate_id
|
|
|
|
with open("local.env.yml", "w", encoding="utf-8") as _config:
|
|
safe_dump(
|
|
{
|
|
"debug": True,
|
|
"log_level": "debug",
|
|
"secret_key": generate_id(),
|
|
"postgresql": {
|
|
"user": "postgres",
|
|
},
|
|
"outposts": {
|
|
"container_image_base": "ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s",
|
|
"disable_embedded_outpost": False,
|
|
},
|
|
"blueprints_dir": "./blueprints",
|
|
"cert_discovery_dir": "./certs",
|
|
"geoip": "tests/GeoLite2-City-Test.mmdb",
|
|
"tenants": {
|
|
"enabled": False,
|
|
"api_key": generate_id(),
|
|
},
|
|
},
|
|
_config,
|
|
default_flow_style=False,
|
|
)
|