diff --git a/auto-ssh-systemd-hosts.conf b/auto-ssh-systemd-hosts.conf index 22d3ff2..c5a4078 100644 --- a/auto-ssh-systemd-hosts.conf +++ b/auto-ssh-systemd-hosts.conf @@ -1,6 +1,6 @@ Host bpfilip.dk HostName bpfilip.dk - IdentityFile /root/.ssh/id_rsa + IdentityFile /home/pi/.ssh/id_rsa User root Port 2223 LocalForward 22 127.0.0.1:2222 diff --git a/autossh.service b/autossh.service index e76ead8..bdc7a72 100644 --- a/autossh.service +++ b/autossh.service @@ -3,9 +3,10 @@ Description=Keeps an SSH tunnel to 'bpfilip.dk' open After=network-online.target [Service] -User=root ExecStart=/usr/bin/autossh -M 0 -N -q -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" bpfilip.dk ExecStop=/usr/bin/killall -s KILL autossh +User=1000 +Group=1000 Restart=always RestartSec=3 diff --git a/public/index.html b/public/index.html index fb1ef09..dd08011 100755 --- a/public/index.html +++ b/public/index.html @@ -41,20 +41,20 @@

Relay 1

- - + +

Relay 2

- - + +

Relay 3

- - + +

Relay 4

- - + + diff --git a/public/main.js b/public/main.js index e04fa0c..458ca9c 100755 --- a/public/main.js +++ b/public/main.js @@ -40,10 +40,10 @@ async function main() { const relay3Div = document.getElementById('relay3'); const relay4Div = document.getElementById('relay4'); - relay1Div.innerText = await (await fetch("http://10.242.84.110:8080/status/19")).text(); - relay2Div.innerText = await (await fetch("http://10.242.84.110:8080/status/13")).text(); - relay3Div.innerText = await (await fetch("http://10.242.84.110:8080/status/6")).text(); - relay4Div.innerText = await (await fetch("http://10.242.84.110:8080/status/5")).text(); + relay1Div.innerText = await (await fetch("https://steady.bpfilip.dk/relay/status/19")).text(); + relay2Div.innerText = await (await fetch("https://steady.bpfilip.dk/relay/status/13")).text(); + relay3Div.innerText = await (await fetch("https://steady.bpfilip.dk/relay/status/6")).text(); + relay4Div.innerText = await (await fetch("https://steady.bpfilip.dk/relay/status/5")).text(); } main();