Remove the 404 redirect from gitea

This commit is contained in:
BBaoVanC 2022-09-15 19:42:55 -05:00
parent 3e4ae36359
commit 21dc225361
1 changed files with 11 additions and 11 deletions

View File

@ -8,18 +8,18 @@ git.bbaovanc.com {
reverse_proxy localhost:81 { reverse_proxy localhost:81 {
header_up X-Real-IP {remote_host} header_up X-Real-IP {remote_host}
@404 status 404 #@404 status 404
handle_response @404 { #handle_response @404 {
handle /bbaovanc/* { # handle /bbaovanc/* {
root * /etc/caddy/github-redirect/ # root * /etc/caddy/github-redirect/
rewrite * /index.php?uri={uri} # rewrite * /index.php?uri={uri}
php_fastcgi unix//run/php/php-fpm.sock # php_fastcgi unix//run/php/php-fpm.sock
} # }
handle { # handle {
copy_response # copy_response
} # }
} #}
} }
} }