nginx: add reverse proxy route for ttyd
This commit is contained in:
parent
1c3540868e
commit
78cc85cf2d
1 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,14 @@ location /ubus {
|
|||
ubus_socket_path /var/run/ubus/ubus.sock;
|
||||
ubus_parallel_req 2;
|
||||
}
|
||||
|
||||
location ~ ^/ttyd(.*)$ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade '$http_upgrade';
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://'$server_addr':7681/'$1';
|
||||
}
|
||||
|
||||
EOT
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue