From d4be28ba4165ec3404a0b4095cd4b12a48248d05 Mon Sep 17 00:00:00 2001
From: fanyuhui <852221040@qq.com>
Date: Mon, 22 Jul 2024 16:22:18 +0800
Subject: [PATCH] Bug Fix:Access the custom URL path after setting the password
---
README.md | 24 ++++++++++++++++++++++++
README_EN.md | 24 ++++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/README.md b/README.md
index 6995bc4..a78a558 100644
--- a/README.md
+++ b/README.md
@@ -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反向代理配置
+如不需要可忽略~
+
+ ☜ 核心配置
+
+
+```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;
+ }
+```
+
+
+
+
+
## Stargazers over time
[![Stargazers over time](https://starchart.cc/Yohann0617/tgNetDisc.svg)](https://starchart.cc/Yohann0617/tgNetDisc)
diff --git a/README_EN.md b/README_EN.md
index d6827ba..6728d48 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -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~
+
+ ☜ Core configuration
+
+
+```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;
+ }
+```
+
+
+
+
+
## Stargazers over time
[![Stargazers over time](https://starchart.cc/Yohann0617/tgNetDisc.svg)](https://starchart.cc/Yohann0617/tgNetDisc)