Automatically redirect nextcloud login page to authentik

This commit is contained in:
Marko Korhonen 2024-04-04 19:39:02 +03:00
parent 879cfda68e
commit a919e656c8
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -89,6 +89,9 @@ korhonen.cc, *.korhonen.cc {
@nextcloud host cloud.korhonen.cc
handle @nextcloud {
# Redirect login page to Authentik
redir /login /apps/sociallogin/custom_oidc/korhonen-sso 301
# .htaccess / data / config / ... shouldn't be accessible from outside
@forbidden {
path /.htaccess