diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/local/apache2/ttyd.conf | 12 | ||||
-rw-r--r-- | debian/ttyd.README.Debian | 12 | ||||
-rw-r--r-- | debian/ttyd.install | 1 |
3 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..3a1c927 --- /dev/null +++ b/debian/local/apache2/ttyd.conf @@ -0,0 +1,12 @@ +# /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/ +</IfModule> diff --git a/debian/ttyd.README.Debian b/debian/ttyd.README.Debian index 9af0faa..3fd0de1 100644 --- a/debian/ttyd.README.Debian +++ b/debian/ttyd.README.Debian @@ -13,5 +13,17 @@ ttyd for Debian * Edit /etc/default/ttyd and check the ttyd(1) manpage for the exact options. +To enable access to ttyd via apache2, enabling the shipped reverse proxy +configuration needs the following steps: + + * a2enmod proxy + * a2enmod proxy_http + * a2enmod proxy_http2 + * a2enmod proxy_wstunnel + + * a2enconf ttyd + +ttyd is now accessible as <http://example.org/ttyd>, consider protecting this with +TLS as well as some authentication. -- Daniel Baumann <daniel.baumann@progress-linux.org> Sun, 21 Feb 2021 17:19:20 +0100 diff --git a/debian/ttyd.install b/debian/ttyd.install index 70f696a..4b8d4f0 100644 --- a/debian/ttyd.install +++ b/debian/ttyd.install @@ -1 +1,2 @@ debian/local/default/* /etc/default +debian/local/apache2/* /etc/apache2/conf-available |