 a5467c6e19
			
		
	
	a5467c6e19
	
	
	
		
			
			* root: add primary-replica db router Signed-off-by: Jens Langhammer <jens@goauthentik.io> * copy all settings for database replicas Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * refresh read replicas config, switch to using a dict instead of a list for easier refresh Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * add test for get_keys Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * fix getting override Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * lint Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * nosec Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * small fixes Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * fix replica settings Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * generate config: add a dummy read replica Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * add doc Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * add healthchecks for replicas Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * fix Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * add note about hot reloading Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			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",
 | |
|                 "read_replicas": {
 | |
|                     "0": {},
 | |
|                 },
 | |
|             },
 | |
|             "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(),
 | |
|             },
 | |
|         },
 | |
|         _config,
 | |
|         default_flow_style=False,
 | |
|     )
 |