From 46b6c482ec9d02be5d6fe38c5d6b4a72394b6264 Mon Sep 17 00:00:00 2001 From: Al Beano Date: Thu, 15 Sep 2016 22:32:34 +0100 Subject: [PATCH] httpd and cron config --- README.md | 3 ++- httpd.conf | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8f46395..9b12ed8 100644 --- a/README.md +++ b/README.md @@ -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 - ``` diff --git a/httpd.conf b/httpd.conf index d65329d..723b3f8 100644 --- a/httpd.conf +++ b/httpd.conf @@ -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/" +}