Skip to content

Commit

Permalink
Bug Fix:Access the custom URL path after setting the password
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohann0617 committed Jul 22, 2024
1 parent 7a43b59 commit d4be28b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,30 @@ curl -X POST -F "image=@/root/test/tgNetDisc;type=application/octet-stream" http
curl -X POST -F "image=@/root/test/tgNetDisc;type=application/octet-stream" -b "p=YOURPASSWORD" https://hh.abc.com/api
```

## 自定义URL的Nginx反向代理配置
如不需要可忽略~
<details>
<summary> ☜ 核心配置</summary>
<br>

```bash
# 网盘
location /tgState {
proxy_pass http://localhost:8088;
}
location ~ ^/tgState/(d|pwd|api)(.*)$ {
limit_req zone=mylimit burst=20;
proxy_pass http://localhost:8088/$1$2;
}
location /pwd {
proxy_pass http://localhost:8088;
}
```

<br>

</details>

## Stargazers over time

[![Stargazers over time](https://starchart.cc/Yohann0617/tgNetDisc.svg)](https://starchart.cc/Yohann0617/tgNetDisc)
24 changes: 24 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,30 @@ If a password is set:
curl -X POST -F "image=@/root/test/tgNetDisc;type=application/octet-stream" -b "p=YOURPASSWORD" https://hh.abc.com/api
```

## Custom URL Nginx reverse proxy configuration
Ignore if not needed~
<details>
<summary> ☜ Core configuration</summary>
<br>

```bash
# Netdisk
location /tgState {
proxy_pass http://localhost:8088;
}
location ~ ^/tgState/(d|pwd|api)(.*)$ {
limit_req zone=mylimit burst=20;
proxy_pass http://localhost:8088/$1$2;
}
location /pwd {
proxy_pass http://localhost:8088;
}
```

<br>

</details>

## Stargazers over time

[![Stargazers over time](https://starchart.cc/Yohann0617/tgNetDisc.svg)](https://starchart.cc/Yohann0617/tgNetDisc)
Expand Down

0 comments on commit d4be28b

Please sign in to comment.