Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proxy example to Accuterm.io docs #33

Open
patrickp opened this issue Nov 4, 2020 · 0 comments
Open

Add proxy example to Accuterm.io docs #33

patrickp opened this issue Nov 4, 2020 · 0 comments

Comments

@patrickp
Copy link
Contributor

patrickp commented Nov 4, 2020

A client figured out how to proxy Accuterm.io via Apache. Need to add these examples to our documentation.

For Apache 2.4 you need to enable the following:

a2enmod proxy
a2enmod proxy_http
a2enmod proxy_wstunnel

Here is virtual host config

<VirtualHost 0.0.0.0:443>
ServerName yourserver.name.org

SSLProxyEngine On
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
ProxyPreserveHost On

RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "wss://accutermIOserver:4380/$1" [P,L]

My config.json on the IO server

{
"port": 4380,
"secure": true,
"ssl_cert": "./keys/server_cert.pem",
"ssl_key": "./keys/server_key.pem",
"static_dir": "./assets",
"heartbeat": 60,
"close_on_heart_failure": true,
"trust_proxy": true,
"command":"/usr/bin/d3",
"defaults": {
"term": "vt100",
"cols": 80,
"rows": 24
}
}

The AccuTermIO server has self signed cert, don’t think I will change that

Web server hosting the proxy will have a lets encrypt cert when moved to production.

Craig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant