mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-24 13:17:16 +02:00
tools.func: add nginx site helper and PHP socket resolver (#16118)
This commit is contained in:
committed by
GitHub
parent
7046b72981
commit
8029b208a6
@@ -32,10 +32,11 @@ msg_ok "Set up Webtrees"
|
||||
|
||||
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/webtrees
|
||||
php_fastcgi unix//run/php/php${PHP_VER}-fpm.sock
|
||||
php_fastcgi unix/${PHP_SOCK}
|
||||
file_server
|
||||
encode gzip
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user