Make openid optional for immich

This commit is contained in:
Ivan R. 2024-10-30 17:42:50 +05:00
parent d39ea3b25f
commit 207a4718e7
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
4 changed files with 14 additions and 2 deletions

View file

@ -4,6 +4,7 @@
- name: immich
db_url: postgres://immich:{{ postgresql_users.immich }}@postgresql:5432/immich?sslmode=disable
external_domain: https://i.comfycamp.space
openid_enabled: true
openid_client_id: "{{ immich.client_id }}"
openid_client_secret: "{{ immich.client_secret }}"
openid_issuer_url: https://auth.comfycamp.space/application/o/immich/

View file

@ -12,6 +12,9 @@ argument_specs:
type: str
tag:
type: str
openid_enabled:
type: bool
default: false
openid_client_id:
type: str
openid_client_secret:
@ -22,6 +25,9 @@ argument_specs:
type: str
openid_scopes:
type: str
openid_signing_algorithm:
type: str
default: ES256
default_storage_quota_gib:
type: int
smtp_enabled:

View file

@ -101,12 +101,12 @@
"clientId": "{{ openid_client_id }}",
"clientSecret": "{{ openid_client_secret }}",
"defaultStorageQuota": {{ default_storage_quota_gib }},
"enabled": {{ (openid_client_id is defined and openid_client_secret is defined and openid_issuer_url is defined) | string | lower }},
"enabled": {{ openid_enabled | string | lower }},
"issuerUrl": "{{ openid_issuer_url }}",
"mobileOverrideEnabled": false,
"mobileRedirectUri": "",
"scope": "{{ openid_scopes }}",
"signingAlgorithm": "ES256",
"signingAlgorithm": "{{ openid_signing_algorithm }}",
"profileSigningAlgorithm": "none",
"storageLabelClaim": "preferred_username",
"storageQuotaClaim": "immich_quota"

View file

@ -1,8 +1,13 @@
tz: Asia/Yekaterinburg
tag: v1.119.0
openid_enabled: false
openid_button_text: "Login with OpenID"
openid_scopes: "openid email profile"
openid_client_id: ""
openid_client_secret: ""
openid_issuer_url: ""
openid_signing_algorithm: ES256
default_storage_quota_gib: 20