feat: immich sso
This commit is contained in:
parent
2631d1243b
commit
7a7ef55522
3 changed files with 21 additions and 1 deletions
|
|
@ -3,11 +3,30 @@ let
|
|||
domain = "immich.sprechtl.me";
|
||||
in
|
||||
{
|
||||
age.secrets.immich = {
|
||||
file = ../../secrets/immich.age;
|
||||
owner = "immich";
|
||||
group = "immich";
|
||||
mode = "0400";
|
||||
};
|
||||
services.immich = {
|
||||
enable = true;
|
||||
database.host = "/run/postgresql";
|
||||
port = 2283; # default
|
||||
settings.externalDomain = domain;
|
||||
settings = {
|
||||
externalDomain = domain;
|
||||
oauth = {
|
||||
enabled = true;
|
||||
issuerUrl = "https://auth.sprechtl.me/application/o/immich/.well-known/openid-configuration";
|
||||
clientId = "EXMPaB2SoZYSSWu56ebB6CYV8W1hQS2eTwLdFBDw";
|
||||
# clientSecret = ""; saved in secrets file
|
||||
scope = "openid email profile";
|
||||
buttonText = "Login with Authentik";
|
||||
autoRegister = true;
|
||||
autoLaunch = false; # set true to skip local login page entirely
|
||||
};
|
||||
};
|
||||
secretsFile = config.age.secrets.immich.path;
|
||||
mediaLocation = "/data/immich/";
|
||||
};
|
||||
|
||||
|
|
|
|||
BIN
secrets/immich.age
Normal file
BIN
secrets/immich.age
Normal file
Binary file not shown.
|
|
@ -20,4 +20,5 @@ in {
|
|||
"authentik.age".publicKeys = [hitsugibune key];
|
||||
"vaultwarden.age".publicKeys = [hitsugibune key];
|
||||
"forgejo-mailer-password.age".publicKeys = [hitsugibune key];
|
||||
"immich.age".publicKeys = [hitsugibune key];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue