Skip to content

Custom config path #4649

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

Merged
merged 3 commits into from
Apr 23, 2025
Merged

Custom config path #4649

merged 3 commits into from
Apr 23, 2025

Conversation

c121914yu
Copy link
Collaborator

@c121914yu c121914yu commented Apr 23, 2025

Sweep Summary Sweep

Adds support for customizing the config.json file path in production environments through a new CONFIG_JSON_PATH environment variable.

  • Modified readConfigData() in projects/app/src/service/common/system/index.ts to use a configurable path from environment variables instead of hardcoded production path.
  • Added new optional CONFIG_JSON_PATH environment variable to env.d.ts and .env.template for specifying a custom config file location.
  • Updated environment variable type definitions to be optional with the ? modifier for better TypeScript type safety.
  • Added documentation entry in the upgrade notes to inform users about the new feature.

Ask Sweep AI questions about this PR

shikaiwei1 and others added 3 commits April 23, 2025 23:31
通过环境变量DATA_PATH获取配置文件目录,以应对不同的部署方式的多样化需求
Copy link
Contributor

gru-agent bot commented Apr 23, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 37fa765 ✅ Finished

Files

File Pull Request
projects/app/src/service/common/system/index.ts ❌ Failure (I failed to write the unit tests for the file.)

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

@c121914yu c121914yu merged commit f00f21f into v4.9.7-dev Apr 23, 2025
6 checks passed
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 21.81% 10939 / 50155
🔵 Statements 21.81% 10939 / 50155
🔵 Functions 28.27% 285 / 1008
🔵 Branches 63.96% 678 / 1060
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
projects/app/src/service/common/system/index.ts 30.53% 100% 15.38% 30.53% 29-49, 55-57, 60-61, 64-66, 69-71, 74-76, 91-93, 115-209
Generated in workflow #657 for commit 37fa765 by the Vitest Coverage Report Action

Copy link

Preview mcp_server Image: ghcr.io/labring/fastgpt-pr:fatsgpt_mcp_server_37fa765ad03d76cf767b2bbebe8bbe68c390a6ff

Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://eed1b6a8.fastgpt-8gr.pages.dev

Copy link

Preview sandbox Image: ghcr.io/labring/fastgpt-pr:fatsgpt_sandbox_37fa765ad03d76cf767b2bbebe8bbe68c390a6ff

Copy link

Preview fastgpt Image: ghcr.io/labring/fastgpt-pr:fatsgpt_37fa765ad03d76cf767b2bbebe8bbe68c390a6ff

c121914yu added a commit that referenced this pull request Apr 24, 2025
* feat: 通过环境变量DATA_PATH获取配置文件目录 (#4622)

通过环境变量DATA_PATH获取配置文件目录,以应对不同的部署方式的多样化需求

* feat: custom configjson path

* doc

---------

Co-authored-by: John Chen <[email protected]>
c121914yu added a commit that referenced this pull request Apr 25, 2025
* feat: 通过环境变量DATA_PATH获取配置文件目录 (#4622)

通过环境变量DATA_PATH获取配置文件目录,以应对不同的部署方式的多样化需求

* feat: custom configjson path

* doc

---------

Co-authored-by: John Chen <[email protected]>
c121914yu added a commit that referenced this pull request Apr 26, 2025
* update doc

* feat: Add coupon redemption feature for team subscriptions (#4595)

* feat: Add coupon redemption feature for team subscriptions

- Introduced `TeamCouponSub` and `TeamCouponSchema` types
- Added `redeemCoupon` API endpoint
- Updated UI to include a modal for coupon redemption
- Added new icon and translations for "Redeem coupon"

* perf: remove field teamId

* perf: use dynamic import

* refactor: move to page component

* perf: coupon code

* perf: mcp server

* perf: test

* auto layout (#4634)

* fix 4.9.6 (#4631)

* fix debug quote list

* delete next text node match

* fix extract default boolean value

* export latest 100 chat items

* fix quote item ui

* doc

* fix doc

* feat: auto layout

* perf: auto layout

* fix: auto layout null

* add start node

---------

Co-authored-by: heheer <[email protected]>

* fix: share link (#4644)

* Add workflow run duration;Get audio duration (#4645)

* add duration

* get audio duration

* Custom config path (#4649)

* feat: 通过环境变量DATA_PATH获取配置文件目录 (#4622)

通过环境变量DATA_PATH获取配置文件目录,以应对不同的部署方式的多样化需求

* feat: custom configjson path

* doc

---------

Co-authored-by: John Chen <[email protected]>

* 程序api调用场景下,如果大量调用带有图片或视频,产生的聊天记录会导致后台mongo数据库异常。这个修改给api客户端一个禁止生成聊天记录的选项,避免这个后果。 (#3964)

* update special chatId

* perf: vector db rename

* update operationLog (#4647)

* update operationLog

* combine operationLogMap

* solve operationI18nLogMap bug

* remoce log

* feat: Rerank usage (#4654)

* refresh concat when update (#4655)

* fix: refresh code

* perf: timer lock

* Fix operationLog (#4657)

* perf: http streamable mcp

* add alipay (#4630)

* perf: subplan ui

* perf: pay code

* hiden bank tip

* Fix: pay error (#4665)

* fix quote number (#4666)

* remove log

---------

Co-authored-by: a.e. <[email protected]>
Co-authored-by: heheer <[email protected]>
Co-authored-by: John Chen <[email protected]>
Co-authored-by: gaord <[email protected]>
Co-authored-by: gggaaallleee <[email protected]>
@c121914yu c121914yu deleted the test-config-path branch April 27, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants