update: 2024.2.2 -> 2024.2.3
Adapted media upload patch.
Flake lock file updates:
• Updated input 'authentik-src':
'github:goauthentik/authentik/4ec37c52395df6a3b431934cb27771ff814b024c' (2024-03-04)
→ 'github:goauthentik/authentik/6bb180f94ec124092c4f87ae5f5d892a70b32ff3' (2024-04-17)
This commit is contained in:
parent
8be1dcc549
commit
4cdde46347
3 changed files with 13 additions and 14 deletions
|
|
@ -1,12 +1,11 @@
|
||||||
diff --git a/authentik/api/v3/config.py b/authentik/api/v3/config.py
|
diff --git a/authentik/api/v3/config.py b/authentik/api/v3/config.py
|
||||||
--- a/authentik/api/v3/config.py
|
--- a/authentik/api/v3/config.py
|
||||||
+++ b/authentik/api/v3/config.py
|
+++ b/authentik/api/v3/config.py
|
||||||
@@ -66,7 +66,7 @@ class ConfigView(APIView):
|
@@ -71,6 +71,7 @@ class ConfigView(APIView):
|
||||||
"""Get all capabilities this server instance supports"""
|
if (
|
||||||
caps = []
|
CONFIG.get("storage.media.backend", "file") == "s3"
|
||||||
deb_test = settings.DEBUG or settings.TEST
|
or Path(settings.STORAGES["default"]["OPTIONS"]["location"]).is_mount()
|
||||||
- if Path(settings.MEDIA_ROOT).is_mount() or deb_test:
|
+ or CONFIG.get_bool("media.enable_upload")
|
||||||
+ if Path(settings.MEDIA_ROOT).is_mount() or CONFIG.get_bool("media.enable_upload") or deb_test:
|
or deb_test
|
||||||
|
):
|
||||||
caps.append(Capabilities.CAN_SAVE_MEDIA)
|
caps.append(Capabilities.CAN_SAVE_MEDIA)
|
||||||
if GEOIP_READER.enabled:
|
|
||||||
caps.append(Capabilities.CAN_GEO_IP)
|
|
||||||
|
|
|
||||||
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -3,16 +3,16 @@
|
||||||
"authentik-src": {
|
"authentik-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709580025,
|
"lastModified": 1713352755,
|
||||||
"narHash": "sha256-2B1RgKY5tpDBdzguEyWqzg15w5x/dLS2ffjbnxbpINs=",
|
"narHash": "sha256-YWDpRX0z9EL96t0c7RNgAi5b3KOzy3CBEL2Jw27TkVY=",
|
||||||
"owner": "goauthentik",
|
"owner": "goauthentik",
|
||||||
"repo": "authentik",
|
"repo": "authentik",
|
||||||
"rev": "4ec37c52395df6a3b431934cb27771ff814b024c",
|
"rev": "6bb180f94ec124092c4f87ae5f5d892a70b32ff3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "goauthentik",
|
"owner": "goauthentik",
|
||||||
"ref": "version/2024.2.2",
|
"ref": "version/2024.2.3",
|
||||||
"repo": "authentik",
|
"repo": "authentik",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
authentik-src = { # change version string in outputs as well when updating
|
authentik-src = { # change version string in outputs as well when updating
|
||||||
url = "github:goauthentik/authentik/version/2024.2.2";
|
url = "github:goauthentik/authentik/version/2024.2.3";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
{ inherit inputs; }
|
{ inherit inputs; }
|
||||||
({ inputs, lib, withSystem, ... }:
|
({ inputs, lib, withSystem, ... }:
|
||||||
let
|
let
|
||||||
authentik-version = "2024.2.2"; # to pass to the drvs of some components
|
authentik-version = "2024.2.3"; # to pass to the drvs of some components
|
||||||
in {
|
in {
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue