its 7am i havent slept i have no idea
All checks were successful
CI (Gitea) / php-tests (push) Successful in 10m5s
CI (Gitea) / docker-image (push) Successful in 2m22s

This commit is contained in:
2025-11-28 06:40:10 +00:00
parent 336dcc4d3a
commit f77f3a9e40
34 changed files with 1142 additions and 183 deletions

View File

@@ -1,6 +1,6 @@
server {
listen 80;
server_name localhost; # host header (not used locally)
server_name _; # host header (not used locally)
root /var/www/html/public; # Symfony's public/ dir (front controller)
location / {
@@ -11,7 +11,7 @@ server {
location ~ \.php$ {
# Forward PHP requests to php-fpm service
include fastcgi_params;
fastcgi_pass php:9000;
fastcgi_pass tonehaus:9000;
# Use resolved path to avoid path traversal issues
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;

View File

@@ -8,6 +8,21 @@ require_app_secret() {
fi
}
install_runtime() {
if [ -f vendor/autoload_runtime.php ] && [ "${FORCE_COMPOSER_INSTALL:-0}" != "1" ]; then
return
fi
echo "Installing Composer dependencies..."
su-exec www-data composer install \
--no-dev \
--prefer-dist \
--no-interaction \
--no-progress
}
install_runtime
if [ -f bin/console ]; then
require_app_secret
fi