Skip to content

Instantly share code, notes, and snippets.

View bennet-agital's full-sized avatar

Bennet Gallein bennet-agital

  • agital.online GmbH
  • Lueneburg
  • 07:48 (UTC +02:00)
View GitHub Profile
# crowdsec log-rotate config
# out this in /etc/logrotate.d/crowdsec
# test configuration wit "sudo logrotate --force /etc/logrotate.d/crowdsec"
/var/log/crowdsec.log /var/log/crowdsec_api.log {
daily
rotate 12
compress
copytruncate
delaycompress
Options +FollowSymLinks
RewriteEngine On
RewriteRule !\.(ico|gif|jpg|png|css|js|swf|flv|map|ttf|woff|woff2|svg|min.js) index.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)/(assets|plugins|css|png|img|imgs|js)/(.*) _views/$2/$3 [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ \_views/$1 [NC,L]
<Files config.json>