init
Simple centralized logging for low-volume needs
Local dev setup:
php -S logs.thirdplace.test -t public public/app.php
cp config/config.dist.php config/config.php
sqlite3 var/app.sqlite < migrations/001-init.sql
nginx config for prod:
# /etc/nginx/sites-enabled/logs.thirdplace.test
server {
root /var/www/logs.thirdplace.test/public;
server_name logs.thirdplace.test;
access_log /var/log/nginx/logs.thirdplace.test.access.log;
error_log /var/log/nginx/logs.thirdplace.test.error.log;
location / {
try_files $uri /app.php$is_args$args;
}
location /app.php {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
}