summaryrefslogtreecommitdiffstats
path: root/debian/local/apache2
diff options
context:
space:
mode:
Diffstat (limited to 'debian/local/apache2')
-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..9dcd79d
--- /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://127.0.0.1:7681/ws
+ ProxyPassReverse /ttyd/ws ws://127.0.0.1:7681/ws
+
+ ProxyPass /ttyd http://127.0.0.1:7681 keepalive=on
+ ProxyPassReverse /ttyd http://127.0.0.1:7681
+
+ <IfFile /etc/ttyd/apache2-auth.conf>
+ <Location /ttyd>
+ Include /etc/ttyd/apache2-auth.conf
+ </Location>
+ </IfFile>
+</IfModule>