Skip to content
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 #11210

Merged
merged 16 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix:apollo-config empty string changed to None
  • Loading branch information
huanshare committed Dec 5, 2024
commit e4463d4a82fd1dd79b9499b88cd44706e55599df
2 changes: 1 addition & 1 deletion api/configs/middleware/configuration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

class ConfigurationCenterConfig(ApolloConfig):
# configuration type
CONFIGURATION_TYPE: str = Field(description="configuration type", default="")
CONFIGURATION_TYPE: str = Field(description="configuration type", default=None)
8 changes: 4 additions & 4 deletions api/configs/middleware/configuration/apollo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ class ApolloConfig(BaseSettings):

APOLLO_APP_ID: str = Field(
description="apollo app_id",
default="",
default=None,
)

APOLLO_CLUSTER: str = Field(
description="apollo cluster",
default="",
default=None,
)

APOLLO_CONFIG_URL: str = Field(
description="apollo config url",
default="",
default=None,
)

APOLLO_NAMESPACE: str = Field(
description="apollo namespace",
default="",
default=None,
)
Loading