summaryrefslogtreecommitdiffstats
path: root/debian/local/apache2/ttyd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'debian/local/apache2/ttyd.conf')
-rw-r--r--debian/local/apache2/ttyd.conf27
1 files changed, 20 insertions, 7 deletions
diff --git a/debian/local/apache2/ttyd.conf b/debian/local/apache2/ttyd.conf
index 3a1c927..66b1850 100644
--- a/debian/local/apache2/ttyd.conf
+++ b/debian/local/apache2/ttyd.conf
@@ -1,12 +1,25 @@
# /etc/apache2/conf-available/ttyd.conf
-<IfModule mod_proxy.c>
- ProxyRequests Off
- ProxyPreserveHost On
+<IfModule rewrite_module>
+ <IfModule proxy_http_module>
+ <IfModule proxy_wstunnel_module>
+ ProxyPreserveHost On
+ ProxyRequests Off
- ProxyPass /ttyd/ws ws://localhost:7681/ws
- ProxyPassReverse /ttyd/ws ws://localhost:7681/ws
+ ProxyPass /ttyd/token ws://localhost:7681/token
+ ProxyPassReverse /ttyd/token ws://localhost:7681/token
- ProxyPass /ttyd/ http://localhost:7681/ keepalive=on
- ProxyPassReverse /ttyd/ http://localhost:7681/
+ 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>