This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PHP] | |
;;;;;;;;;;;;;;;;;;;; | |
; php.ini Options ; | |
;;;;;;;;;;;;;;;;;;;; | |
;user_ini.filename = ".user.ini" | |
;user_ini.filename = | |
;user_ini.cache_ttl = 300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# For LS_COLORS, print type and description in the relevant color. | |
# chmod u+x | |
IFS=: | |
for ls_color in $LS_COLORS; do | |
color="${ls_color#*=}" | |
type="${ls_color%=*}" | |
# Add descriptions for named types. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Listen 80 | |
Listen 127.0.0.1:81 | |
<IfModule ssl_module> | |
# Listen 443 | |
</IfModule> | |
<IfModule mod_gnutls.c> | |
# Listen 443 | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Regular cron job for the geoipupdate package, used to update GeoIP databases | |
# | |
# According to MaxMind: "The GeoIP2 and GeoIP Legacy Country and City databases | |
# are updated every Tuesday. The GeoIP2 ISP, GeoIP Legacy ISP and Organization | |
# databases are updated every one to two weeks. All other databases are updated | |
# on the first Tuesday of each month." | |
# m h dom mon dow user command | |
47 6 * * 3 root test -x /usr/bin/geoipupdate && /usr/bin/geoipupdate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/fail2ban.log { | |
# weekly | |
daily | |
# rotate 4 | |
rotate 30 | |
# compress | |
# delaycompress | |
missingok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# this script is intended to run with sudo privileges | |
# It is using GeoLite2xtables to do csv's from MaxMind databases | |
# Make this executable: sudo chmod +x /etc/cron.monthly/geoip-updater | |
echo 'Removing old database---------------------------------------------------' | |
rm -rf /usr/share/xt_geoip/* | |
mkdir /usr/share/xt_geoip | |
echo 'Downloading country databases-------------------------------------------' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; DigitalOcean 4 CPU, 8 GB RAM | |
; PHP7.3-FPM | |
; If all pools hit in with full power there isn't enough RAM, I reckon. | |
; | |
; static | |
; Wordpress, 2000 - 5000 users per day | |
[www] | |
user = www-data | |
group = www-data | |
listen = /run/php/php7.3-fpm.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hitch | |
check process hitch with pidfile /var/run/hitch.pid | |
start program = "/usr/bin/systemctl start hitch" with timeout 30 seconds | |
stop program = "/usr/bin/systemctl stop hitch" | |
if failed host 127.0.0.1 port 443 type tcpSSL protocol http | |
and request /index.html with timeout 5 seconds for 2 times within 2 cycles | |
then restart | |
if 2 restarts within 2 cycles then timeout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### eksis.one | |
check host eksis.one with address www.eksis.one | |
# ICMP check | |
if failed icmp type echo | |
for 2 times within 2 cycles | |
then alert | |
# HTTPS check | |
if failed port 443 type tcpSSL protocol http |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process crond with pidfile /var/run/crond.pid | |
group system | |
group crond | |
start program = "/etc/init.d/cron start" | |
stop program = "/etc/init.d/cron stop" | |
if 5 restarts with 5 cycles then timeout | |
depend cron_bin | |
depend cron_rc | |
depend cron_spool |