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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Configuration #437

Merged
merged 14 commits into from
May 26, 2024
Merged

Better Configuration #437

merged 14 commits into from
May 26, 2024

Conversation

Tides
Copy link
Member

@Tides Tides commented May 4, 2024

Replaces the old IServerConfiguration and uses the ConfigurationManager provided by Generic Host. This also makes it possible to now use environment variables to configure the server. As long as you're familiar with how people do it in asp net Core, the same would apply here. Another PR to generally improve and make this feel more .net like 馃檹馃徏 closes #407

@github-actions github-actions bot added api Relates to Obsidian.API plugins Relates to plugins labels May 4, 2024
Copy link
Collaborator

@Craftplacer Craftplacer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from half of the changes you've done not matching the title of the pull request, this look fine.

Obsidian.ConsoleApp/config/server.json Show resolved Hide resolved
@Tides
Copy link
Member Author

Tides commented May 8, 2024

Aside from half of the changes you've done not matching the title of the pull request, this look fine.

Lets just say they were all "necessary" changes and not me going on a minor side quest 馃槶 馃槶

@Naamloos
Copy link
Member

looks good. Just curious about the logic of the pregenerated config files being there.

other than that, this closes #407 when merged.

@Tides Tides merged commit f2704ef into master May 26, 2024
2 checks passed
@Tides Tides deleted the feature/better-configuration branch May 26, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to Obsidian.API plugins Relates to plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow configuration through ENV variables
3 participants