Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:immich [2025/02/24 10:25] – [SSO authentication setup] willy | services:immich [2025/03/13 14:41] (current) – [Installation] willy | ||
---|---|---|---|
Line 18: | Line 18: | ||
Immich needs to be installed using a docker compose file. This is the official and only supported installation method. I will show you, of course, how to run it rootless with podman. Immich installation is detailed [[https:// | Immich needs to be installed using a docker compose file. This is the official and only supported installation method. I will show you, of course, how to run it rootless with podman. Immich installation is detailed [[https:// | ||
- | I assume you have already created the photo user and group (see [[services: | + | I assume you have already created the photo user and group (see [[selfhost: |
<code bash> | <code bash> | ||
useradd -d / | useradd -d / | ||
Line 116: | Line 116: | ||
Immich support direct integration with [[selfhost: | Immich support direct integration with [[selfhost: | ||
- | First of all, you need to configure Authelia with a new: | + | First of all, you need to configure Authelia with a new client: |
< | < | ||
identity_providers: | identity_providers: | ||
Line 144: | Line 143: | ||
authelia crypto rand --length 72 --charset rfc3986 | authelia crypto rand --length 72 --charset rfc3986 | ||
</ | </ | ||
+ | This information will need to copied to both authelia config and immich settings. | ||
To generate a Client Secret: | To generate a Client Secret: | ||
Line 149: | Line 149: | ||
authelia crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986 | authelia crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986 | ||
</ | </ | ||
+ | Please note **both** the hash and the password itself! You will need the password itself in the next step. | ||
+ | |||
+ | Then you need to configure Immich to use Authelia SSO, so go to //Immich web gui → administration → settings → Authentication settings// and enter the following information: | ||
+ | * Issuer URL: https:// | ||
+ | * Client ID: << the generated ClientID >>. | ||
+ | * Client Secret: insecure_secret. | ||
+ | * Scope: openid profile email. | ||
+ | * Button Text: Login with Authelia. | ||
+ | * Auto Register: Enable if desired. | ||
+ | |||
+ | |||