Update Monolog action level to info, adjust Dockerfile permissions and logging configuration, and set supervisord user to root
All checks were successful
CI (Gitea) / php-tests (push) Successful in 10m4s
CI (Gitea) / docker-image (push) Successful in 2m23s

This commit is contained in:
2025-11-28 10:08:36 +00:00
parent 4ae7a44881
commit 391ecf1732
5 changed files with 24 additions and 2 deletions

5
assets/app.js Normal file
View File

@@ -0,0 +1,5 @@
// Placeholder front-end entrypoint to satisfy importmap & asset mapper.
// You can add real JS behavior here; for now we only register a noop.
console.debug('Tonehaus assets initialized');

View File

@@ -42,7 +42,7 @@ when@prod:
handlers:
main:
type: fingers_crossed
action_level: error
action_level: info
handler: nested
excluded_http_codes: [404, 405]
buffer_size: 50 # How many messages should be saved? Prevent memory leaks

View File

@@ -125,7 +125,9 @@ COPY docker/prod/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh \
&& mkdir -p /run/nginx /var/log/supervisor \
&& chown -R www-data:www-data /var/www/html
&& chown -R www-data:www-data /run/nginx /var/log/supervisor /var/www/html
RUN mkdir -p /var/lib/nginx /var/log/nginx && chown -R www-data:www-data /var/lib/nginx /var/log/nginx
RUN sed -i 's|^error_log =.*|error_log = /proc/self/fd/2|' /usr/local/etc/php-fpm.conf
EXPOSE 8080

View File

@@ -2,6 +2,7 @@
nodaemon=true
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
user=root
[program:php-fpm]
command=/usr/local/sbin/php-fpm --nodaemonize

14
importmap.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
/**
* Importmap configuration for the asset mapper.
*
* The single "app" entrypoint is enough for Bootstrap + custom JS tweaks.
*/
return [
'app' => [
'path' => './assets/app.js',
'entrypoint' => true,
],
];