tools.func: add nginx site helper and PHP socket resolver (#16118)

This commit is contained in:
CanbiZ (MickLesk)
2026-07-28 19:47:13 +02:00
committed by GitHub
parent 7046b72981
commit 8029b208a6
51 changed files with 169 additions and 166 deletions
+2 -1
View File
@@ -56,10 +56,11 @@ chown -R www-data:www-data /opt/lychee
msg_info "Configuring Caddy"
PHP_VER=$(php -r 'echo PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION;')
PHP_SOCK=$(get_php_fpm_socket)
cat <<EOF >/etc/caddy/Caddyfile
:80 {
root * /opt/lychee/public
php_fastcgi unix//run/php/php${PHP_VER}-fpm.sock
php_fastcgi unix/${PHP_SOCK}
file_server
encode gzip
}