fix: detect existing Nextcloud/WordPress installs and add dedicated php-fpm pools

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/6d5b7710-ee06-40ff-8975-f8edca8b879f

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-17 03:51:10 +00:00
committed by GitHub
parent 0c596fb396
commit cdb93ad8dc
3 changed files with 142 additions and 5 deletions
+3 -3
View File
@@ -110,7 +110,7 @@ EOF
$WORDPRESS {
encode gzip zstd
root * /var/lib/www/wordpress
php_fastcgi unix//run/phpfpm/mypool.sock
php_fastcgi unix//run/phpfpm/wordpress.sock
file_server browse
}
EOF
@@ -123,7 +123,7 @@ EOF
$NEXTCLOUD {
encode gzip zstd
root * /var/lib/www/nextcloud
php_fastcgi unix//run/phpfpm/mypool.sock {
php_fastcgi unix//run/phpfpm/nextcloud.sock {
trusted_proxies private_ranges
}
file_server
@@ -221,4 +221,4 @@ ${extraVhosts}
CUSTOM_VHOSTS_EOF
'';
};
}
}