 50860d7ffe
			
		
	
	50860d7ffe
	
	
	
		
			
			* events: add ASN Database reader Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix test config generator Signed-off-by: Jens Langhammer <jens@goauthentik.io> * de-duplicate code Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add enrich_context Signed-off-by: Jens Langhammer <jens@goauthentik.io> * rename to context processors? Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix cache Signed-off-by: Jens Langhammer <jens@goauthentik.io> * use config deprecation system, update docs Signed-off-by: Jens Langhammer <jens@goauthentik.io> * update more docs and tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add test asn db Signed-off-by: Jens Langhammer <jens@goauthentik.io> * re-build schema with latest versions Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
		
			
				
	
	
		
			30 lines
		
	
	
		
			888 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			888 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",
 | |
|             },
 | |
|             "blueprints_dir": "./blueprints",
 | |
|             "cert_discovery_dir": "./certs",
 | |
|             "events": {
 | |
|                 "processors": {
 | |
|                     "geoip": "tests/GeoLite2-City-Test.mmdb",
 | |
|                     "asn": "tests/GeoLite2-ASN-Test.mmdb",
 | |
|                 }
 | |
|             },
 | |
|         },
 | |
|         _config,
 | |
|         default_flow_style=False,
 | |
|     )
 |