YunoHost-Apps / pixelfed_ynh

The federated image shareing service Pixelfed for YunoHost
https://pixelfed.org/
GNU Affero General Public License v3.0
44 stars 15 forks source link

get ride of /var/log/$app stuff #107

Closed yalh76 closed 4 years ago

yalh76 commented 4 years ago

There are several places in the package that refer to /var/log/$app but I'm not sure if pixelfed_ynh can log something...

If it can log thing we should check that it logs them... If not, references to that should be removed

lapineige commented 4 years ago

I have no /var/log/$app on my server. Logging could be used for fail2ban at least, but I don't know if pixelfed log anything or not.

yalh76 commented 4 years ago

I v'e added creation of the log file in https://github.com/YunoHost-Apps/pixelfed_ynh/blob/fdd125cfa5c3dd819b73927416635538aafe7d56/scripts/install#L146-L148 :) so we will keep /var/logs

lapineige commented 4 years ago

Let's see if it logs failed connection attempts, and if that case we could setup a fail2ban rule. https://github.com/YunoHost-Apps/pixelfed_ynh/issues/22

yalh76 commented 4 years ago

I'm really not sure that connection attempts are logged. If you have time to do some test on a test pixelfed_ynh on the branch https://github.com/YunoHost-Apps/pixelfed_ynh/tree/from_documentation let me know...

lapineige commented 4 years ago

Well, if someone else doesn't do it before me, I'm surely going to try… but I don't have time yet.