-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
feat:add apollo configuration to load env file #11139
feat:add apollo configuration to load env file #11139
Conversation
Cool, I shall talk to the dev team regarding this pull request. |
I think this PR needs improvement:
|
fix:python style error issue:langgenius#11064
fix:not overwrite of .env files
1、The first problem has been adjusted. *** For the third problem, it is recommended that all configurations except environment variables should be configured using apollo, so that it is easier to maintain in one place. |
Hi @huanshare. The current implementation still doesn’t quite meet my expectations. Here’s the scenario I envision:
Hope this helps clarify! |
I am sorry,I ran into some issues and need to close this pull request |
Don’t mind. Would you consider opening a new PR to complete this feature? I agree that we can read Apollo's configuration directly from environment variables (in fact, adding the configuration to |
you can visit this #11210 |
Close #11064
Summary
Please note:dify supports loading env file configuration from the configuration-center(apollo). If you use apollo, first configure the dify configuration on apollo, and then before starting the project, configure the following parameters in the environment variables:
CONFIGURATION_TYPE=apollo,APOLLO_APP_ID=xxx,APOLLO_CLUSTER=xxx,APOLLO_CONFIG_URL=xxx,APOLLO_NAMESPACE=xxx
Tip
Close issue syntax:
Fixes #<issue number>
orResolves #<issue number>
, see documentation for more details.Screenshots
Checklist
Important
Please review the checklist below before submitting your pull request.
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint gods