summaryrefslogtreecommitdiffstats
path: root/debian/local/apache2/ttyd.conf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-08 13:17:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-08 13:17:49 +0000
commit68549d248a37ba1749ca4765640b589635c7053f (patch)
treed4cf9cff61c78c4fa9c014cb6b303989038c31e0 /debian/local/apache2/ttyd.conf
parentAdding upstream version 1.6.3. (diff)
downloadttyd-68549d248a37ba1749ca4765640b589635c7053f.tar.xz
ttyd-68549d248a37ba1749ca4765640b589635c7053f.zip
Adding debian version 1.6.3-1.debian/1.6.3-1
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.conf25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/local/apache2/ttyd.conf b/debian/local/apache2/ttyd.conf
new file mode 100644
index 0000000..66b1850
--- /dev/null
+++ b/debian/local/apache2/ttyd.conf
@@ -0,0 +1,25 @@
+# /etc/apache2/conf-available/ttyd.conf
+
+<IfModule rewrite_module>
+ <IfModule proxy_http_module>
+ <IfModule proxy_wstunnel_module>
+ ProxyPreserveHost On
+ ProxyRequests Off
+
+ ProxyPass /ttyd/token ws://localhost:7681/token
+ ProxyPassReverse /ttyd/token ws://localhost:7681/token
+
+ ProxyPass /ttyd/ws ws://localhost:7681/ws
+ ProxyPassReverse /ttyd/ws ws://localhost:7681/ws
+
+ ProxyPass /ttyd http://localhost:7681
+ ProxyPassReverse /ttyd http://localhost:7681
+
+ <IfFile /etc/ttyd/apache2-auth.conf>
+ <Location /ttyd>
+ Include /etc/ttyd/apache2-auth.conf
+ </Location>
+ </IfFile>
+ </IfModule>
+ </IfModule>
+</IfModule>