2022-08-01 21:05:58 +00:00
|
|
|
"""Generate config for development"""
|
|
|
|
from yaml import safe_dump
|
|
|
|
|
|
|
|
from authentik.lib.generators import generate_id
|
|
|
|
|
2023-04-18 11:28:19 +00:00
|
|
|
with open("local.env.yml", "w", encoding="utf-8") as _config:
|
2022-08-01 21:05:58 +00:00
|
|
|
safe_dump(
|
|
|
|
{
|
2023-05-03 20:52:59 +00:00
|
|
|
"debug": True,
|
2022-08-01 21:05:58 +00:00
|
|
|
"log_level": "debug",
|
|
|
|
"secret_key": generate_id(),
|
|
|
|
"postgresql": {
|
|
|
|
"user": "postgres",
|
|
|
|
},
|
|
|
|
"outposts": {
|
|
|
|
"container_image_base": "ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s",
|
2023-12-04 06:53:13 +00:00
|
|
|
"disable_embedded_outpost": False,
|
2022-08-01 21:05:58 +00:00
|
|
|
},
|
2022-08-02 22:05:49 +00:00
|
|
|
"blueprints_dir": "./blueprints",
|
2022-08-01 21:05:58 +00:00
|
|
|
"cert_discovery_dir": "./certs",
|
|
|
|
"geoip": "tests/GeoLite2-City-Test.mmdb",
|
2023-12-12 10:23:50 +00:00
|
|
|
"storage": {
|
|
|
|
"media": {
|
|
|
|
"backend": "file",
|
|
|
|
"s3": {
|
|
|
|
"endpoint": "http://localhost:8020",
|
|
|
|
"access_key": "accessKey1",
|
|
|
|
"secret_key": "secretKey1",
|
|
|
|
"bucket_name": "authentik-media",
|
|
|
|
"custom_domain": "localhost:8020/authentik-media",
|
|
|
|
"secure_urls": False,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-12-04 06:40:23 +00:00
|
|
|
"tenants": {
|
2023-12-04 06:53:13 +00:00
|
|
|
"enabled": False,
|
|
|
|
"api_key": generate_id(),
|
2023-12-04 06:40:23 +00:00
|
|
|
},
|
2022-08-01 21:05:58 +00:00
|
|
|
},
|
|
|
|
_config,
|
|
|
|
default_flow_style=False,
|
|
|
|
)
|