mirror of https://github.com/huashengdun/webssh
Merge 5cd85f7e54
into 1cf19c7186
commit
288d71d623
17
README.md
17
README.md
|
@ -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
|
||||
|
|
17
README.rst
17
README.rst
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue