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: allow config path to be configured via env var #67

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

MicaiahReid
Copy link
Contributor

@MicaiahReid MicaiahReid commented Sep 22, 2023

Description

The default config path can now be specified via env var.
Fixes #58

Example

The CONFIG_PATH environment variable can optionally be passed when starting the devnet API:

CONFIG_PATH="./path/to/Config.toml" stacks-devnet-api

If the variable isn't passed, or if resolving the variable yields an error, a default path of "./Config.toml" is used.


Checklist

  • All tests pass
  • Tests added in this PR (if applicable)

Copy link
Member

@CharlieC3 CharlieC3 left a comment

Choose a reason for hiding this comment

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

Nice, thank you! :shipit:

@MicaiahReid MicaiahReid merged commit 483fb8b into develop Sep 22, 2023
4 of 5 checks passed
@MicaiahReid MicaiahReid deleted the env-config-path branch September 22, 2023 23:07
blockstack-devops pushed a commit that referenced this pull request Mar 25, 2024
## [1.1.0](v1.0.0...v1.1.0) (2024-03-25)

### Features

* allow config path to be configured via env var ([#67](#67)) ([483fb8b](483fb8b))
* allow configuring k8s context with env var ([#71](#71)) ([f7e6bc3](f7e6bc3))
* check auth header before allowing access ([#47](#47)) ([6dcb36d](6dcb36d))
* remove pods; implement deployments/stateful sets ([#75](#75)) ([6399c19](6399c19))
* status page at `GET /` and `GET /api/v1/status` routes ([#68](#68)) ([d4c2290](d4c2290))
* upgrade clarinet to v2.4.0; enable `use_nakamoto` field to configure stacks chain for nakamoto ([#89](#89)) ([521acd1](521acd1))
* upgrade to using clarinet crate to parse config  ([#46](#46)) ([d57d3a1](d57d3a1))

### Bug Fixes

* add ACCESS_CONTROL_ALLOW_HEADERS to response header ([#52](#52)) ([225d2c9](225d2c9))
* add subPath for postgres volume mount ([#73](#73)) ([7812741](7812741))
* api container spelling fix ([7b52f93](7b52f93))
* don't require auth on OPTIONS requests; configure user-id prefix to make namespace ([#51](#51)) ([9fe7972](9fe7972))
* reduce permissions for cluster role ([#54](#54)) ([2ea50ea](2ea50ea))
* removing untemplated labels ([#82](#82)) ([e92dcb5](e92dcb5))
* set img pull policy for stacks blockchain api ([0b959c2](0b959c2))
* template ([#85](#85)) ([4399177](4399177))
@blockstack-devops
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Make config file path configurable
3 participants