pull/301/merge
Silas S. Brown 2023-05-05 14:12:36 -07:00 committed by GitHub
commit 288d71d623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -199,6 +199,23 @@ location / {
}
```
If the Nginx server is also serving a website,
you can have it put WebSSH into a subdirectory:
```nginx
location = /webssh {
return 302 /webssh/;
}
location /webssh/ws {
proxy_pass http://127.0.0.1:8888/ws;
proxy_http_version 1.1;
# ... (rest as above)
}
location /webssh/ {
proxy_pass http://127.0.0.1:8888/;
}
```
Running as a standalone server
```bash
wssh --port=8080 --sslport=4433 --certfile='cert.crt' --keyfile='cert.key' --xheaders=False --policy=reject

View File

@ -214,6 +214,23 @@ Running behind an Nginx server
proxy_set_header X-Real-PORT $remote_port;
}
If the Nginx server is also serving a website,
you can have it put WebSSH into a subdirectory:
.. code:: nginx
location = /webssh {
return 302 /webssh/;
}
location /webssh/ws {
proxy_pass http://127.0.0.1:8888/ws;
proxy_http_version 1.1;
# ... (rest as above)
}
location /webssh/ {
proxy_pass http://127.0.0.1:8888/;
}
Running as a standalone server
.. code:: bash