oidc komga

This commit is contained in:
Arno 2024-12-28 11:13:07 +00:00
parent d2932d7c32
commit 8dbcfd0433
3 changed files with 14 additions and 3 deletions

View File

@ -2,3 +2,11 @@
# Konga # Konga
ProxyPass /komga http://komga:25600/komga retry=0 keepalive=On ProxyPass /komga http://komga:25600/komga retry=0 keepalive=On
ProxyPassReverse /komga http://komga:25600/komga retry=0 ProxyPassReverse /komga http://komga:25600/komga retry=0
<LocationMatch "^/komga/login$">
Redirect 302 /komga/oauth2/authorization/keycloak
</LocationMatch>
<LocationMatch "^/komga/login?redirect=%2Fdashboard$">
Redirect 302 /komga/oauth2/authorization/keycloak
</LocationMatch>

View File

@ -3,3 +3,4 @@
TZ=Europe/Paris TZ=Europe/Paris
SERVER_SERVLET_CONTEXT_PATH=/komga SERVER_SERVLET_CONTEXT_PATH=/komga
KOMGA_OAUTH2_ACCOUNT_CREATION=1

View File

@ -6,7 +6,7 @@ spring:
keycloak: keycloak:
provider: keycloak # this must match the provider below provider: keycloak # this must match the provider below
client-id: komga client-id: komga
client-secret: XXJQwHX4YEQJpGez3nymBh6PgSby3fz9 client-secret: changeme
client-name: keycloak client-name: keycloak
scope: openid,email scope: openid,email
authorization-grant-type: authorization_code authorization-grant-type: authorization_code
@ -27,3 +27,5 @@ spring:
webclient: webclient:
ssl: ssl:
trust-all: true trust-all: true
komga:
oauth2-account-creation: true