mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-10-29 00:52:30 +00:00
add shell endpoint. bump version
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
upstream ttyd_back {
|
||||
server unix:/var/run/ttyd.sock;
|
||||
}
|
||||
|
||||
server {
|
||||
listen *:80;
|
||||
|
||||
@@ -17,6 +21,19 @@ server {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location /shell/ {
|
||||
proxy_pass http://ttyd_back/;
|
||||
proxy_read_timeout 90s;
|
||||
proxy_connect_timeout 90s;
|
||||
proxy_send_timeout 90s;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
root /usr/local/www/clonos/public;
|
||||
include /usr/local/etc/nginx/fastcgi_params;
|
||||
|
||||
Reference in New Issue
Block a user