Standardize nginx setup in install scripts

Refactors many install scripts to use the shared `nginx_enable_site` helper instead of manual symlink/default-site/reload sequences, making webserver setup more consistent and less error-prone. It also replaces hardcoded PHP-FPM socket paths with `get_php_fpm_socket` (including templated substitutions where needed) across nginx and caddy configs to improve compatibility with varying PHP versions and socket locations.
This commit is contained in:
MickLesk
2026-07-28 14:57:58 +02:00
parent f862ce0c13
commit b7688ff97a
44 changed files with 77 additions and 156 deletions
+1 -4
View File
@@ -69,10 +69,7 @@ sed -i \
-e "s|/var/www/html|/opt/warracker/frontend|g" \
-e "s/client_max_body_size __NGINX_MAX_BODY_SIZE_CONFIG_VALUE__/client_max_body_size 32M/" \
/etc/nginx/sites-available/warracker.conf
ln -s /etc/nginx/sites-available/warracker.conf /etc/nginx/sites-enabled/warracker.conf
rm /etc/nginx/sites-enabled/default
systemctl restart nginx
nginx_enable_site warracker.conf
msg_ok "Configured Nginx"
msg_info "Creating systemd services"