diff options
| author | Frederick Muriuki Muriithi | 2026-05-21 16:22:42 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-05-21 16:22:42 -0500 |
| commit | dbcf3716297077d589b43d1cf01b700601d6ac7c (patch) | |
| tree | cf535555052f571b2f94fd71438c8725446d3a31 /gn_auth | |
| parent | d50c224bd95cb11ea462f99c339bd68a2d601538 (diff) | |
| download | gn-auth-dbcf3716297077d589b43d1cf01b700601d6ac7c.tar.gz | |
Override all settings with the startup settings before doing checks.
The startup checks should be used sparingly, if at all, and they override every other setting.
Diffstat (limited to 'gn_auth')
| -rw-r--r-- | gn_auth/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/__init__.py b/gn_auth/__init__.py index f015e5e..d03c9ef 100644 --- a/gn_auth/__init__.py +++ b/gn_auth/__init__.py @@ -100,14 +100,14 @@ def create_app(config: Optional[dict] = None) -> Flask: # ====== Setup configuration ====== app.config.from_object(settings) # Default settings - # Override defaults with startup settings - app.config.update(config or {}) # Override app settings with site-local settings if "GN_AUTH_CONF" in os.environ: app.config.from_envvar("GN_AUTH_CONF") override_settings_with_envvars(app) + # Override defaults with startup settings + app.config.update(config or {}) load_secrets_conf(app) # ====== END: Setup configuration ====== |
