YH’s PeerTube instance kept going down recently with a 502 error, which I eventually realised was due to it running out of hard drive space on the server. What was puzzling was I’d clear space by deleting backups and then it would fill up again and 502 out.
This led me to look around the server (I’ve v v basic sysadmin copy/paste skills) and see that var/log/peertube was over 6GB. Some of the individual log files were over 256mb.
I opened an issue with PeerTube, where it was suggested I check
/var/www/peertube/config/production.yml - which is blank. Looking at
/default.yml I could see that the default setting is to only log ‘info’ with a max 12mb files size and 20 files. So wherever the Yunohost log files are, it’s using higher values than this.
Where can I find the Peertube config yml file? (or does anyone have a better way to manage Peertube log files?)