summaryrefslogtreecommitdiffstats
path: root/debian/local/apache2/ttyd.conf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-19 10:26:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-19 11:55:51 +0000
commit116995274c49da63a9e18ec6a85423071e175280 (patch)
treefc3f80a704a017dcbc856003b4af944ae1af0f8f /debian/local/apache2/ttyd.conf
parentUpdating to standards version 4.6.1. (diff)
downloadttyd-116995274c49da63a9e18ec6a85423071e175280.tar.xz
ttyd-116995274c49da63a9e18ec6a85423071e175280.zip
Adding apache2 reverse-proxy configuration.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/local/apache2/ttyd.conf')
-rw-r--r--debian/local/apache2/ttyd.conf18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/local/apache2/ttyd.conf b/debian/local/apache2/ttyd.conf
new file mode 100644
index 0000000..d30fab8
--- /dev/null
+++ b/debian/local/apache2/ttyd.conf
@@ -0,0 +1,18 @@
+# /etc/apache2/conf-available/ttyd.conf
+
+<IfModule mod_proxy.c>
+ ProxyRequests Off
+ ProxyPreserveHost On
+
+ ProxyPass /ttyd/ws ws://localhost:7681/ws
+ ProxyPassReverse /ttyd/ws ws://localhost:7681/ws
+
+ ProxyPass /ttyd/ http://localhost:7681/ keepalive=on
+ ProxyPassReverse /ttyd/ http://localhost:7681/
+
+ <IfFile /etc/ttyd/apache2-auth.conf>
+ <Location /ttyd>
+ Include /etc/ttyd/apache2-auth.conf
+ </Location>
+ </IfFile>
+</IfModule>