it sends emails when your shit stops working: https://tor.uptime.party | http://ixudcccpw5o56fvk.onion
9f39852941 | ||
---|---|---|
tormon | ||
README.md | ||
db.sql | ||
httpd.conf | ||
tormon.yml |
README.md
pkg_add curl # if you don't have it already
mv /var/www /var/www.old # clean out OpenBSD's default guff
mkdir -p /var/www/logs /var/www/run /var/www/perl5 /var/www/tormon
chown www:www /var/www/run
install -o www -g www -m 0400 httpd.conf /etc/
echo "permit nopass root as www" >> /etc/doas.conf
curl -L https://cpanmin.us | perl - App::cpanminus
cpanm -l /var/www/perl5 FCGI Switch Template::Simple File::Slurp Email::Valid DBD::SQLite Math::Random::Secure Email::Sender::Simple Email::Simple Email::Simple::Creator Email::Sender::Transport::SMTPS YAML::Tiny LWP::UserAgent JSON::Tiny LWP::Protocol::https
install -o www -g www -m 0500 tormon/* /var/www/tormon/
cat db.sql | sqlite3 /var/www/tormon.db
chown www:www /var/www/tormon.db
chown www:www /var/www
chmod 0600 /var/www/tormon.db
install -o www -g www -m 0400 tormon.yml /var/www/
# customise the values in /var/www/tormon.yml to your liking...
echo 'echo "Starting tormon" && doas -u www /var/www/tormon/tormon.fcgi &' >> /etc/rc.local
sh /etc/rc.local # assuming tormon is the only thing in rc.local
rcctl enable httpd
rcctl start httpd
echo '0,20,40 * * * * /var/www/tormon/notify.pl' | crontab -u www -