SatoshiPortal / cyphernode

Modular Bitcoin full-node microservices API server architecture and utilities toolkit to build scalable, secure and featureful apps and services without trusted third parties
MIT License
362 stars 68 forks source link

Have Cyphernode's own logrotate #296

Open Kexkey opened 1 year ago

Kexkey commented 1 year ago

Currently, log rotation can be done by using host's OS logrotate daemon (see https://github.com/SatoshiPortal/cyphernode/tree/master/contrib/etc/logrotate.d) but it requires CN operator to set it up.

It would be nice to have it managed by Cyphernode.

I think we could use proxycron's container to do this: mount the logs/ folder in there and configure logrotate with a generous default configuration.