httpd and cron config

This commit is contained in:
Al Beano 2016-09-15 22:32:34 +01:00
parent f16b3b0b0f
commit 46b6c482ec
2 changed files with 10 additions and 2 deletions

View File

@ -14,8 +14,9 @@ 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
echo 'echo "Starting tormon" && do 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 -
```

View File

@ -1,7 +1,8 @@
server "default" {
no log
listen on :: port 80
listen on :: tls port 443
listen on 0.0.0.0 tls port 443
listen on 127.0.0.1 port 81 # for tor HS
tls {
certificate "/etc/letsencrypt/live/tor.uptime.party/fullchain.pem"
key "/etc/letsencrypt/live/tor.uptime.party/privkey.pem"
@ -10,3 +11,9 @@ server "default" {
fastcgi socket "/run/tormon.sock"
}
}
server "default" {
no log
listen on :: port 80
listen on 0.0.0.0 port 80
block return 301 "https://tor.uptime.party/"
}