
* website/docs: Clarify setup flow. Document local overrides. * Update website/docs/developer-docs/setup/frontend-dev-environment.md Co-authored-by: Dominic R <dominic@sdko.org> Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com> * Update website/docs/developer-docs/setup/frontend-dev-environment.md Co-authored-by: Dominic R <dominic@sdko.org> Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com> * Update website/docs/developer-docs/setup/frontend-dev-environment.md Co-authored-by: Dominic R <dominic@sdko.org> Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com> * Update website/docs/developer-docs/setup/frontend-dev-environment.md Co-authored-by: Dominic R <dominic@sdko.org> Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com> * Update website/docs/developer-docs/setup/frontend-dev-environment.md Co-authored-by: Dominic R <dominic@sdko.org> Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com> * Update website/docs/developer-docs/setup/frontend-dev-environment.md Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com> * Update website/docs/developer-docs/setup/full-dev-environment.mdx Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com> * Update website/docs/install-config/install/docker-compose.mdx Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com> * Update website/docs/developer-docs/setup/frontend-dev-environment.md Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com> * Update website/docs/developer-docs/setup/full-dev-environment.mdx Signed-off-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com> * Update authentik/lib/default.yml Signed-off-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com> * fix linting to please the ci check --------- Signed-off-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com> Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com> Co-authored-by: Tana M Berry <tanamarieberry@yahoo.com> Co-authored-by: Dominic R <dominic@sdko.org> Co-authored-by: Marcelo Elizeche Landó <marcelo@goauthentik.io>
90 lines
2.2 KiB
Python
Executable File
90 lines
2.2 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""Generate config for development"""
|
|
|
|
from yaml import safe_dump
|
|
|
|
from authentik.lib.generators import generate_id
|
|
|
|
|
|
def generate_local_config():
|
|
"""Generate a local development configuration"""
|
|
# TODO: This should be generated and validated against a schema, such as Pydantic.
|
|
|
|
return {
|
|
"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",
|
|
"events": {
|
|
"processors": {
|
|
"geoip": "tests/GeoLite2-City-Test.mmdb",
|
|
"asn": "tests/GeoLite2-ASN-Test.mmdb",
|
|
}
|
|
},
|
|
"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,
|
|
},
|
|
},
|
|
},
|
|
"tenants": {
|
|
"enabled": False,
|
|
"api_key": generate_id(),
|
|
},
|
|
}
|
|
|
|
|
|
if __name__ == "__main__":
|
|
config_file_name = "local.env.yml"
|
|
|
|
with open(config_file_name, "w", encoding="utf-8") as _config:
|
|
_config.write(
|
|
"""
|
|
# Local authentik configuration overrides
|
|
#
|
|
# https://docs.goauthentik.io/docs/install-config/configuration/
|
|
#
|
|
# To regenerate this file, run the following command from the repository root:
|
|
#
|
|
# ```shell
|
|
# make gen-dev-config
|
|
# ```
|
|
|
|
"""
|
|
)
|
|
|
|
safe_dump(
|
|
generate_local_config(),
|
|
_config,
|
|
default_flow_style=False,
|
|
)
|
|
|
|
print(
|
|
f"""
|
|
---
|
|
|
|
Generated configuration file: {config_file_name}
|
|
|
|
For more information on how to use this configuration, see:
|
|
|
|
https://docs.goauthentik.io/docs/install-config/configuration/
|
|
|
|
---
|
|
"""
|
|
)
|