~thirdplace/logs

Simple centralized logging for low-volume needs

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~thirdplace/logs
read/write
git@git.sr.ht:~thirdplace/logs

You can also use your local clone with git send-email.

#Thirdplace Logs

Simple centralized logging for low-volume needs

#Tutorial

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;
    }
}