From de0523852a81bc80aff83eb6a93a9d1cb7f68bd2 Mon Sep 17 00:00:00 2001 From: ljw <84855512@qq.com> Date: Sun, 20 Oct 2024 19:40:49 +0800 Subject: [PATCH] up readme --- README.md | 7 +++++++ README_EN.md | 3 +++ conf/config.yaml | 6 +++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e94a867..8c63374 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,9 @@ logger: path: "./runtime/log.txt" level: "warn" #trace,debug,info,warn,error,fatal report-caller: true +proxy: + enable: false + host: "" ``` ### 环境变量 @@ -204,6 +207,10 @@ logger: | RUSTDESK_API_RUSTDESK_RELAY_SERVER | Rustdesk的relay服务器地址 | 192.168.1.66:21117 | | RUSTDESK_API_RUSTDESK_API_SERVER | Rustdesk的api服务器地址 | http://192.168.1.66:21114 | | RUSTDESK_API_RUSTDESK_KEY | Rustdesk的key | 123456789 | +| ----PROXY配置----- | --------------- | ---------- | +| RUSTDESK_API_PROXY_ENABLE | 是否启用代理:`false`, `true` | `false` | +| RUSTDESK_API_PROXY_HOST | 代理地址 | `http://127.0.0.1:1080` | + ### 运行 diff --git a/README_EN.md b/README_EN.md index 7f48f5a..47c8fca 100644 --- a/README_EN.md +++ b/README_EN.md @@ -210,6 +210,9 @@ The prefix for variable names is `RUSTDESK_API`. If environment variables exist, | RUSTDESK_API_RUSTDESK_RELAY_SERVER | Rustdesk relay server address | 192.168.1.66:21117 | | RUSTDESK_API_RUSTDESK_API_SERVER | Rustdesk API server address | http://192.168.1.66:21114 | | RUSTDESK_API_RUSTDESK_KEY | Rustdesk key | 123456789 | +| ---- PROXY ----- | --------------- | ---------- | +| RUSTDESK_API_PROXY_ENABLE | proxy_enable :`false`, `true` | `false` | +| RUSTDESK_API_PROXY_HOST | proxy_host | `http://127.0.0.1:1080` | ### Installation Steps diff --git a/conf/config.yaml b/conf/config.yaml index 11f94dd..b818cbd 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -25,6 +25,9 @@ logger: path: "./runtime/log.txt" level: "warn" #trace,debug,info,warn,error,fatal report-caller: true +proxy: + enable: false + host: "" redis: addr: "127.0.0.1:6379" password: "" @@ -45,6 +48,3 @@ oss: jwt: private-key: "./conf/jwt_pri.pem" expire-duration: 360000 -proxy: - enable: false - host: "" \ No newline at end of file