httpd and cron config
This commit is contained in:
parent
f16b3b0b0f
commit
46b6c482ec
|
@ -14,8 +14,9 @@ chown www:www /var/www
|
||||||
chmod 0600 /var/www/tormon.db
|
chmod 0600 /var/www/tormon.db
|
||||||
install -o www -g www -m 0400 tormon.yml /var/www/
|
install -o www -g www -m 0400 tormon.yml /var/www/
|
||||||
# customise the values in /var/www/tormon.yml to your liking...
|
# 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
|
sh /etc/rc.local # assuming tormon is the only thing in rc.local
|
||||||
rcctl enable httpd
|
rcctl enable httpd
|
||||||
rcctl start httpd
|
rcctl start httpd
|
||||||
|
echo '0,20,40 * * * * /var/www/tormon/notify.pl' | crontab -u www -
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
server "default" {
|
server "default" {
|
||||||
no log
|
no log
|
||||||
listen on :: port 80
|
|
||||||
listen on :: tls port 443
|
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 {
|
tls {
|
||||||
certificate "/etc/letsencrypt/live/tor.uptime.party/fullchain.pem"
|
certificate "/etc/letsencrypt/live/tor.uptime.party/fullchain.pem"
|
||||||
key "/etc/letsencrypt/live/tor.uptime.party/privkey.pem"
|
key "/etc/letsencrypt/live/tor.uptime.party/privkey.pem"
|
||||||
|
@ -10,3 +11,9 @@ server "default" {
|
||||||
fastcgi socket "/run/tormon.sock"
|
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/"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue