aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-03-15 13:48:19 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-03-15 13:48:19 +0100
commit0ae1913d9c2807680bbd23ce2e0df903d08af1b0 (patch)
tree8835b4975f952260f2601c51d900a89158205bac /templates
downloadrelayed_domain-0ae1913d9c2807680bbd23ce2e0df903d08af1b0.tar.gz
relayed_domain-0ae1913d9c2807680bbd23ce2e0df903d08af1b0.zip
initial commitHEADmain
Diffstat (limited to 'templates')
-rw-r--r--templates/forward-service.ini.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/forward-service.ini.j2 b/templates/forward-service.ini.j2
new file mode 100644
index 0000000..7e64525
--- /dev/null
+++ b/templates/forward-service.ini.j2
@@ -0,0 +1,5 @@
+[program:forward-{{ relay_port }}-to-{{ inventory_hostname }}-{{ relayed_port }}]
+command=ssh -N -L [::]:{{ relay_port }}:localhost:{{ relayed_port }} {{ inventory_hostname }}
+autostart=yes
+autorestart=yes
+startsec=15