diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-07-19 10:26:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-07-19 11:25:37 +0000 |
commit | 7761ad893f4b5a0b2903fead383d2d836addfc65 (patch) | |
tree | 34e848e9a5d3454c134f408a90e56f293d7e4130 | |
parent | Updating to standards version 4.6.1. (diff) | |
download | ttyd-7761ad893f4b5a0b2903fead383d2d836addfc65.tar.xz ttyd-7761ad893f4b5a0b2903fead383d2d836addfc65.zip |
Adding apache2 reverse-proxy configuration.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-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 |