How long does Discourse keep IP logs by default?
Thanks
It is listed in our privacy policy which is linked at the bottom of every discourse.org webpage.
2 个赞
I saw those as I was editing my privacy policy; I wasn’t sure whether they were the defaults or specific to meta.discourse.org.
Good to know. Thanks
旧话题,但这是一个很好的可搜索查询。
我刚刚发现,在我自托管的 Discourse 实例上,轮换是“每天”一次,保留期为 7 天(“rotate 7”):
>
> less /etc/logrotate.d/nginx
/var/log/nginx/*.log {
daily
missingok
rotate 7
compress
delaycompress
create 0644 www-data www-data
sharedscripts
postrotate
sv 1 nginx
endscript
}
这里有一个很好的参考:Linux 中的 logrotate 命令及示例 (linuxconfig.org)
1 个赞