try typo3 nginx stuff

This commit is contained in:
2023-08-18 13:19:24 +02:00
parent 46d27d5199
commit fca2eaf581

View File

@@ -254,12 +254,15 @@ in
proxy_set_header Remote-Groups $groups; proxy_set_header Remote-Groups $groups;
proxy_set_header Remote-Name $name; proxy_set_header Remote-Name $name;
proxy_set_header Remote-Email $email; 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 Authelia returns 401, then nginx redirects the user to the login portal.
# If it returns 200, then the request pass through to the backend. # If it returns 200, then the request pass through to the backend.
# For other type of errors, nginx will handle them as usual. # For other type of errors, nginx will handle them as usual.
error_page 401 =302 https://auth.cloonar.com/?rd=$target_url; 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; try_files $uri /typo3/index.php$is_args$args;
''; '';
}; };