From fca2eaf5813288d6febe899971bf713daec92894 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Fri, 18 Aug 2023 13:19:24 +0200 Subject: [PATCH] try typo3 nginx stuff --- utils/modules/services/web/typo3.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/modules/services/web/typo3.nix b/utils/modules/services/web/typo3.nix index de304f3..394ec0c 100644 --- a/utils/modules/services/web/typo3.nix +++ b/utils/modules/services/web/typo3.nix @@ -254,12 +254,15 @@ in proxy_set_header Remote-Groups $groups; proxy_set_header Remote-Name $name; proxy_set_header Remote-Email $email; - fastcgi_param PHP_AUTH_USER $user; # If Authelia returns 401, then nginx redirects the user to the login portal. # If it returns 200, then the request pass through to the backend. # For other type of errors, nginx will handle them as usual. error_page 401 =302 https://auth.cloonar.com/?rd=$target_url; + fastcgi_param AUTH_USER $user; + fastcgi_param REMOTE_USER $user; + fastcgi_param PHP_AUTH_USER $user; + try_files $uri /typo3/index.php$is_args$args; ''; };