| author | |
| committer | |
| log | d7aaed393d5ab61468014ee56d2e3393d23beeb7 |
| tree | 7fe161b043ab877e2a61d70cbfb97792e90ca16c |
| parent | 475b7d66a8d2e212107ca5ed624b515b45c90e5e |
| signature |
so this doesn't setup automatic installation of the provider within
jellyfin. i frankly do not care enough to get that part of the auth
implemented.5 files changed, 66 insertions(+), 8 deletions(-)
.env.example-1| ... | ... | @@ -21,7 +21,6 @@ POSTGRES_PASSWORD= |
| 21 | 21 | POSTGRES_PASSWORD_AUTHELIA= |
| 22 | 22 | POSTGRES_PASSWORD_FORGEJO= |
| 23 | 23 | POSTGRES_PASSWORD_DAWARICH= |
| 24 | POSTGRES_PASSWORD_JELLYFIN= | |
| 25 | 24 | POSTGRES_PASSWORD_LLDAP= |
| 26 | 25 | |
| 27 | 26 | CLOVER_SOT_KEY= |
compose.yaml+3-3| ... | ... | @@ -56,8 +56,6 @@ services: |
| 56 | 56 | condition: service_started |
| 57 | 57 | postgres: |
| 58 | 58 | condition: service_healthy |
| 59 | redis: | |
| 60 | condition: service_healthy | |
| 61 | 59 | healthcheck: |
| 62 | 60 | test: |
| 63 | 61 | - "CMD-SHELL" |
| ... | ... | @@ -242,6 +240,9 @@ services: |
| 242 | 240 | net.paperclover.list.domain: jelly |
| 243 | 241 | net.paperclover.list.priority: 110 |
| 244 | 242 | net.paperclover.list.access: media |
| 243 | depends_on: | |
| 244 | keycloak: | |
| 245 | condition: service_healthy | |
| 245 | 246 | navidrome: # port 4533 |
| 246 | 247 | container_name: navidrome |
| 247 | 248 | image: deluan/navidrome:latest |
| ... | ... | @@ -384,7 +385,6 @@ services: |
| 384 | 385 | POSTGRES_PASSWORD_FORGEJO: "${POSTGRES_PASSWORD_FORGEJO:?}" |
| 385 | 386 | POSTGRES_PASSWORD_KEYCLOAK: "${POSTGRES_PASSWORD_KEYCLOAK:?}" |
| 386 | 387 | POSTGRES_PASSWORD_DAWARICH: "${POSTGRES_PASSWORD_DAWARICH:?}" |
| 387 | POSTGRES_PASSWORD_JELLYFIN: "${POSTGRES_PASSWORD_JELLYFIN:?}" | |
| 388 | 388 | volumes: |
| 389 | 389 | - "${APP_ROOT}/pg_data:/var/lib/postgresql/data/" |
| 390 | 390 | healthcheck: |
config/jellyfin/branding.xml+29-2| ... | ... | @@ -1,7 +1,34 @@ |
| 1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | 2 | <BrandingOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
| 3 | <LoginDisclaimer>and then we knew, just like paper airplanes: that we could fly.</LoginDisclaimer> | |
| 4 | <CustomCss></CustomCss> | |
| 3 | <LoginDisclaimer>&lt;form action=&quot;/sso/OID/start/snow&quot; id=&quot;snow-sign-on-form&quot;&gt; | |
| 4 | &lt;h2&gt;you are not logged in...&lt;/h2&gt; | |
| 5 | &lt;button class=&quot;raised block emby-button button-submit snow-sign-on&quot;&gt; | |
| 6 | snow sign on | |
| 7 | &lt;/button&gt; | |
| 8 | &lt;/form&gt; | |
| 9 | ||
| 10 | and then we knew, just like paper airplanes: that we could fly.</LoginDisclaimer> | |
| 11 | <CustomCss>.loginDisclaimer {width:100%} | |
| 12 | .manualLoginForm, .visualLoginForm, .btnForgotPassword { display: none; } | |
| 13 | .btnQuick {text-transform:lowercase;margin-top: 150px;display:flex} | |
| 14 | #loginPage .emby-button { background: var(--hover-background); width: 100%!important; max-width: 400px!important; margin-left: auto; margin-right: auto; border-radius: 8px; } | |
| 15 | #snow-sign-on-form {transform: translateY(-208px) } | |
| 16 | .snow-sign-on { display: flex; align-items; center; justify-content: center } | |
| 17 | .snow-sign-on:before, .btnQuick:before { | |
| 18 | display: block; | |
| 19 | content: &quot; &quot;; | |
| 20 | width:24px; | |
| 21 | height:24px; | |
| 22 | margin-right: 0.5rem; | |
| 23 | } | |
| 24 | .snow-sign-on:before{ | |
| 25 | background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0i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41LTEuMiA2LjI0LTIuNzJhMS4xNyAxLjE3IDAgMCAxIDEuNTIgMEMxNC41MSAzLjgxIDE3IDUgMTkgNWExIDEgMCAwIDEgMSAxeiIvPjxwYXRoIGQ9Ik04IDEyaC4wMSIvPjxwYXRoIGQ9Ik0xMiAxMmguMDEiLz48cGF0aCBkPSJNMTYgMTJoLjAxIi8+PC9zdmc+); | |
| 29 | mask-size:cover; | |
| 30 | background:var(--main-text); | |
| 31 | }</CustomCss> | |
| 5 | 32 | <SplashscreenEnabled>true</SplashscreenEnabled> |
| 6 | 33 | <SplashscreenLocation>/config/upload/splashscreen-upload.jpg</SplashscreenLocation> |
| 7 | 34 | </BrandingOptions> |
config/keycloak/init.py+34-1| ... | ... | @@ -39,7 +39,7 @@ realm_config = { |
| 39 | 39 | "replyToDisplayName": "clover caruso", |
| 40 | 40 | "envelopeFrom": "", |
| 41 | 41 | "host": env("MAILER_ADDRESS"), |
| 42 | "port": "587", | |
| 42 | "port": "465", | |
| 43 | 43 | "ssl": "true", |
| 44 | 44 | "starttls": "true", |
| 45 | 45 | "auth": "true", |
| ... | ... | @@ -161,6 +161,39 @@ def configure(): |
| 161 | 161 | client_data = kc_admin.get_client(client_id) |
| 162 | 162 | _ = Path("/shared/forgejo").write_text(client_data["secret"]) |
| 163 | 163 | |
| 164 | # jellyfin | |
| 165 | client_id = kc_admin.create_client( | |
| 166 | { | |
| 167 | "protocol": "openid-connect", | |
| 168 | "clientId": "jellyfin", | |
| 169 | "name": "Jellyfin", | |
| 170 | "description": "", | |
| 171 | "publicClient": False, | |
| 172 | "authorizationServicesEnabled": False, | |
| 173 | "serviceAccountsEnabled": False, | |
| 174 | "implicitFlowEnabled": False, | |
| 175 | "directAccessGrantsEnabled": False, | |
| 176 | "standardFlowEnabled": True, | |
| 177 | "frontchannelLogout": True, | |
| 178 | "attributes": { | |
| 179 | "saml_idp_initiated_sso_url_name": "", | |
| 180 | "standard.token.exchange.enabled": False, | |
| 181 | "oauth2.device.authorization.grant.enabled": False, | |
| 182 | "oidc.ciba.grant.enabled": False, | |
| 183 | "pkce.code.challenge.method": "", | |
| 184 | "dpop.bound.access.tokens": "false", | |
| 185 | "post.logout.redirect.uris": "*", | |
| 186 | }, | |
| 187 | "alwaysDisplayInConsole": False, | |
| 188 | "rootUrl": "", | |
| 189 | "baseUrl": "", | |
| 190 | "redirectUris": ["*"], | |
| 191 | }, | |
| 192 | skip_exists=True, | |
| 193 | ) | |
| 194 | client_data = kc_admin.get_client(client_id) | |
| 195 | _ = Path("/shared/jellyfin").write_text(client_data["secret"]) | |
| 196 | ||
| 164 | 197 | # forward auth |
| 165 | 198 | client_id = kc_admin.create_client( |
| 166 | 199 | { |
config/postgres/init.sh-1| ... | ... | @@ -45,7 +45,6 @@ ensure_db_user "clover" "$POSTGRES_PASSWORD" |
| 45 | 45 | ensure_db_user "keycloak" "$POSTGRES_PASSWORD_KEYCLOAK" |
| 46 | 46 | ensure_db_user "dawarich" "$POSTGRES_PASSWORD_DAWARICH" |
| 47 | 47 | ensure_db_user "forgejo" "$POSTGRES_PASSWORD_FORGEJO" |
| 48 | ensure_db_user "jellyfin" "$POSTGRES_PASSWORD_JELLYFIN" | |
| 49 | 48 | |
| 50 | 49 | printf "Everything is ready!" |
| 51 | 50 |