diff --git a/docs/en_US/guide/dashboard.md b/docs/en_US/guide/dashboard.md index d351c5f1..ea8f6a62 100755 --- a/docs/en_US/guide/dashboard.md +++ b/docs/en_US/guide/dashboard.md @@ -95,7 +95,7 @@ location / { proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; } -location ~ ^/(ws|terminal/.+)$ { +location ~ ^/(ws|terminal/.+|file/.+)$ { proxy_pass http://127.0.0.1:8008; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; @@ -120,6 +120,10 @@ proxy /terminal/* http://ip:8008 { websocket header_upstream -Origin } +proxy /file/* http://ip:8008 { + websocket + header_upstream -Origin +} ``` ## Configuring SSL in the aaPanel diff --git a/docs/guide/dashboard.md b/docs/guide/dashboard.md index 723c8d42..ba2d9f59 100755 --- a/docs/guide/dashboard.md +++ b/docs/guide/dashboard.md @@ -99,7 +99,7 @@ location / { proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; } -location ~ ^/(ws|terminal/.+)$ { +location ~ ^/(ws|terminal/.+|file/.+)$ { proxy_pass http://127.0.0.1:8008; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; @@ -124,6 +124,10 @@ proxy /terminal/* http://ip:8008 { websocket header_upstream -Origin } +proxy /file/* http://ip:8008 { + websocket + header_upstream -Origin +} ``` ## 在宝塔面板中配置 SSL