-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
๐ fix: support PROXY_URL
in docker with proxychains-ng
#3362
Conversation
@hezhijie0327 is attempting to deploy a commit to the LobeHub Pro Team on Vercel. A member of the Team first needs to authorize it. |
๐ @hezhijie0327 Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests โ
Additional details and impacted files@@ Coverage Diff @@
## main #3362 +/- ##
==========================================
- Coverage 94.24% 94.21% -0.03%
==========================================
Files 400 403 +3
Lines 25148 25657 +509
Branches 1839 1881 +42
==========================================
+ Hits 23700 24174 +474
- Misses 1448 1483 +35
Flags with carried forward coverage won't be shown. Click here to find out more. โ View full report in Codecov by Sentry. |
TODO:
|
TODO:
|
@arvinxx ไปฃ็ๅ่ฝ้ฝๅฎ็ฐไบ๏ผๅฏไปฅ่ฏ่ฏ ๆๅปบ: ไปฃ็๏ผ ไปฃ็ๅธฆๅๅ๏ผ |
PROXY_URL
in docker with proxychains-ng
@hezhijie0327 ๅฟ
้กป่ฆๅธฆ |
@hezhijie0327 Is it necessary to bring |
ๅฆ ็ไบไธ๏ผ็ดๆฅ้ PROXY_URL ๅฐฑ่ก |
Oh, after taking a look, just configure PROXY_URL. |
ๅฏ |
Well, |
ๆ่ฐขไฝ่
๏ผ่ฏท้ฎ่ฟไธชๅ่ฝๅฅๆถๅๅๅๅนถๅฐไธป็บฟ๏ผ |
Thanks to the author, when will this feature be merged into the mainline? |
โฆset default model
@hezhijie0327 ๆๆตไธๆฅไผผไนไธ่ก๏ผๆ็จ็ไปฃ็ๆฏ ClashX |
@arvinxx ๆฏ
|
@arvinxx Is it If so, it is recommended to use the actual IP address of the current computer (192.168.0.x) or the Host IP of the container, and enable LAN access (it may be called this name. For similar functions, the service needs to be bound to 0.0.0.0 /0 on)
|
ๅฐ่ฏ็จ
|
ๆตไธๆฅๆฒก้ฎ้ขไบ๏ผhezhijie0327#43 ่กฅไบไธๆๆกฃ |
There is no problem after testing, hezhijie0327#43 added the documentation |
Related to lobehub#2004 Add documentation for `PROXY_URL` environment variable in both English and Chinese versions of the environment variables guide. * **English Documentation** - Add `PROXY_URL` section to specify the proxy URL for connecting to external services. - Include example values and a callout for Docker Desktop users. * **Chinese Documentation** - Add `PROXY_URL` section to specify the proxy URL for connecting to external services. - Include example values and a callout for Docker Desktop users. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/lobehub/lobe-chat/pull/3362?shareId=XXXX-XXXX-XXXX-XXXX).
ๅฅฝ็๏ผmerge ไบ |
OK, merge |
PROXY_URL
in docker with proxychains-ngPROXY_URL
in docker with proxychains-ng
โค๏ธ Great PR @hezhijie0327 โค๏ธ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 1.8.2](v1.8.1...v1.8.2) <sup>Released on **2024-08-03**</sup> #### ๐ Bug Fixes - **misc**: Add `PROXY_URL` in docker with proxychains-ng. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Add `PROXY_URL` in docker with proxychains-ng, closes [#3362](#3362) ([920de7c](920de7c)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
๐ This PR is included in version 1.8.2 ๐ The release is available on: Your semantic-release bot ๐ฆ๐ |
### [Version 1.51.1](v1.51.0...v1.51.1) <sup>Released on **2024-08-03**</sup> #### ๐ Bug Fixes - **misc**: Add `PROXY_URL` in docker with proxychains-ng. #### ๐ Styles - **misc**: Fix `aya`, `mathstral` model tag icon & update ollama model info. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Add `PROXY_URL` in docker with proxychains-ng, closes [lobehub#3362](https://github.com/bentwnghk/lobe-chat/issues/3362) ([920de7c](920de7c)) #### Styles * **misc**: Fix `aya`, `mathstral` model tag icon & update ollama model info, closes [lobehub#3382](https://github.com/bentwnghk/lobe-chat/issues/3382) ([ced95a8](ced95a8)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* โจ: feat: support PROXY_URL in docker with proxychains-ng * ๐จ chore: let proxychains config more readable * ๐จ chore: add package update * โก๏ธ perf: add CN mirror for Alpine * ๐จ chore: add more comments * ๐จ chore: change USE_NPM_CN_MIRROR to USE_CN_MIRROR * ๐ fix: fix cn mirror for alpine during building * ๐ fix: fix permission issue * ๐ fix: fix app path error * โจ feat: support proxy server with domain * ๐จ chore: add more comments & cleanup code * ๐จ chore: add more comments * โก๏ธ perf: resolve only when host is domain * ๐จ chore: move IP_REGEX to head * ๐จ chore: replace `! -z` to `-n` * ๐จ chore: update comments * โจ feat: add `DEFAULT_AGENT_CONFIG` and `SYSTEM_AGENT` to env, allow set default model * Add documentation for `PROXY_URL` environment variable Add documentation for `PROXY_URL` environment variable in both English and Chinese versions of the environment variables guide. * **English Documentation** - Add `PROXY_URL` section to specify the proxy URL for connecting to external services. - Include example values and a callout for Docker Desktop users. * **Chinese Documentation** - Add `PROXY_URL` section to specify the proxy URL for connecting to external services. - Include example values and a callout for Docker Desktop users. --------- Co-authored-by: Arvin Xu <[email protected]>
### [Version 1.8.2](lobehub/lobe-chat@v1.8.1...v1.8.2) <sup>Released on **2024-08-03**</sup> #### ๐ Bug Fixes - **misc**: Add `PROXY_URL` in docker with proxychains-ng. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Add `PROXY_URL` in docker with proxychains-ng, closes [lobehub#3362](lobehub#3362) ([920de7c](lobehub@920de7c)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* โจ: feat: support PROXY_URL in docker with proxychains-ng * ๐จ chore: let proxychains config more readable * ๐จ chore: add package update * โก๏ธ perf: add CN mirror for Alpine * ๐จ chore: add more comments * ๐จ chore: change USE_NPM_CN_MIRROR to USE_CN_MIRROR * ๐ fix: fix cn mirror for alpine during building * ๐ fix: fix permission issue * ๐ fix: fix app path error * โจ feat: support proxy server with domain * ๐จ chore: add more comments & cleanup code * ๐จ chore: add more comments * โก๏ธ perf: resolve only when host is domain * ๐จ chore: move IP_REGEX to head * ๐จ chore: replace `! -z` to `-n` * ๐จ chore: update comments * โจ feat: add `DEFAULT_AGENT_CONFIG` and `SYSTEM_AGENT` to env, allow set default model * Add documentation for `PROXY_URL` environment variable Add documentation for `PROXY_URL` environment variable in both English and Chinese versions of the environment variables guide. * **English Documentation** - Add `PROXY_URL` section to specify the proxy URL for connecting to external services. - Include example values and a callout for Docker Desktop users. * **Chinese Documentation** - Add `PROXY_URL` section to specify the proxy URL for connecting to external services. - Include example values and a callout for Docker Desktop users. --------- Co-authored-by: Arvin Xu <[email protected]>
### [Version 1.8.2](lobehub/lobe-chat@v1.8.1...v1.8.2) <sup>Released on **2024-08-03**</sup> #### ๐ Bug Fixes - **misc**: Add `PROXY_URL` in docker with proxychains-ng. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Add `PROXY_URL` in docker with proxychains-ng, closes [lobehub#3362](lobehub#3362) ([920de7c](lobehub@920de7c)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
๐ป ๅๆด็ฑปๅ | Change Type
๐ ๅๆด่ฏดๆ | Description of Change
PROXY_URL="socks5://127.0.0.1:7891"
USE_NPM_CN_MIRROR
ไธบUSE_CN_MIRROR
๐ ่กฅๅ ไฟกๆฏ | Additional Information
replace: #2382