Update dashboard.md (#95)

* Update dashboard.md

Update:更新Dashboard反代中关于探针文件上传的反代配置

* Update dashboard.md

Update:update dashboard about proxy in file use
This commit is contained in:
langren1353 2024-08-25 04:19:45 +08:00 committed by GitHub
parent 1111f53c1f
commit 9300f35a31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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