From 068acdd097dec5733c2a11b6cfc554f396c16d10 Mon Sep 17 00:00:00 2001 From: Benjamin Brummer Date: Sat, 28 Dec 2024 08:36:19 +0100 Subject: [PATCH] remove nginx, php-fpm and supervisord configuration --- debian/nginx/invoiceninja.conf | 14 --------- debian/nginx/laravel.conf | 32 ------------------- debian/php/php-fpm.conf | 1 - debian/supervisor/supervisord.conf | 49 ------------------------------ 4 files changed, 96 deletions(-) delete mode 100644 debian/nginx/invoiceninja.conf delete mode 100644 debian/nginx/laravel.conf delete mode 100644 debian/php/php-fpm.conf delete mode 100644 debian/supervisor/supervisord.conf diff --git a/debian/nginx/invoiceninja.conf b/debian/nginx/invoiceninja.conf deleted file mode 100644 index 78add9d..0000000 --- a/debian/nginx/invoiceninja.conf +++ /dev/null @@ -1,14 +0,0 @@ -# https://nginx.org/en/docs/http/ngx_http_core_module.html -client_max_body_size 10M; -client_body_buffer_size 10M; -server_tokens off; - -# https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html -fastcgi_buffers 32 16K; - -# https://nginx.org/en/docs/http/ngx_http_gzip_module.html -gzip on; -gzip_comp_level 2; -gzip_min_length 1M; -gzip_proxied any; -gzip_types *; diff --git a/debian/nginx/laravel.conf b/debian/nginx/laravel.conf deleted file mode 100644 index aa02988..0000000 --- a/debian/nginx/laravel.conf +++ /dev/null @@ -1,32 +0,0 @@ -# https://laravel.com/docs/master/deployment#nginx -server { - listen 80 default_server; - server_name _; - root /var/www/html/public; - - add_header X-Frame-Options "SAMEORIGIN"; - add_header X-Content-Type-Options "nosniff"; - - index index.php; - - charset utf-8; - - location / { - try_files $uri $uri/ /index.php?$query_string; - } - - location = /favicon.ico { access_log off; log_not_found off; } - location = /robots.txt { access_log off; log_not_found off; } - - error_page 404 /index.php; - - location ~ \.php$ { - fastcgi_pass app:9000; - fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; - include fastcgi_params; - } - - location ~ /\.(?!well-known).* { - deny all; - } -} diff --git a/debian/php/php-fpm.conf b/debian/php/php-fpm.conf deleted file mode 100644 index 63bbada..0000000 --- a/debian/php/php-fpm.conf +++ /dev/null @@ -1 +0,0 @@ -pm.max_children = 10 diff --git a/debian/supervisor/supervisord.conf b/debian/supervisor/supervisord.conf deleted file mode 100644 index ffa858a..0000000 --- a/debian/supervisor/supervisord.conf +++ /dev/null @@ -1,49 +0,0 @@ -[unix_http_server] -file=/var/run/supervisor.sock -chmod=0700 - -[supervisord] -nodaemon=true -user=root -logfile=/var/log/supervisor/supervisord.log -pidfile=/var/run/supervisord.pid - -[rpcinterface:supervisor] -supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface - -[supervisorctl] -serverurl=unix:///var/run/supervisor.sock - -[program:php-fpm] -command=/usr/local/sbin/php-fpm -F -autostart=true -autorestart=true -priority=5 -stdout_logfile=/dev/stdout -stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr -stderr_logfile_maxbytes=0 - -[program:queue-worker] -process_name=%(program_name)s_%(process_num)02d -command=php /var/www/html/artisan queue:work --sleep=3 --tries=3 --max-time=3600 -autostart=true -autorestart=true -stopasgroup=true -killasgroup=true -user=www-data -numprocs=2 -environment=HOME="/var/www" -stdout_logfile=/var/log/php-worker.log -stderr_logfile=/var/log/php-worker.err.log -stopwaitsecs=3600 - -[program:scheduler] -command=/bin/sh -c "while [ true ]; do (php /var/www/html/artisan schedule:run --verbose --no-interaction &); sleep 60; done" -autostart=true -autorestart=true -user=www-data -stdout_logfile=/dev/stdout -stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr -stderr_logfile_maxbytes=0 \ No newline at end of file