Skip to content

Instantly share code, notes, and snippets.

View bennet-esyoil's full-sized avatar

Bennet Gallein bennet-esyoil

  • agital.online GmbH
  • Lueneburg
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>