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

Add app config #30

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Add app config #30

merged 1 commit into from
Oct 30, 2023

Conversation

sergiimk
Copy link
Member

I used a crate called figment that allows layered config loading / merging.

It allows me to specify a config like:

auth:
  providers:
    - kind: dummy
      accounts:
        - accountId: "0"
          accountType: User
          accountName: kamu
          displayName: kamu
          avatarUrl: https://avatars.githubusercontent.com/u/50896974?s=200&v=4

Config can also be overridden with env vars, e.g. KAMU_API_SERVER_FOO=x.

@sergiimk sergiimk merged commit 848327a into master Oct 30, 2023
3 checks passed
@sergiimk sergiimk deleted the feature/app-config branch October 30, 2023 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant