Skip to content

Commit

Permalink
Merge pull request #33 from mattremmel/config-refactor
Browse files Browse the repository at this point in the history
Add config module
  • Loading branch information
mattremmel committed Jul 24, 2024
2 parents 3460a46 + c7794b4 commit 36ee682
Show file tree
Hide file tree
Showing 14 changed files with 516 additions and 81 deletions.
221 changes: 221 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ default-run = "reportinator_server"
anyhow = "1.0.86"
axum = "0.7.5"
clap = "4.5.4"
config_rs = { version = "0.14", package = "config", features = ["yaml"] }
env_logger = "0.11.3"
futures = "0.3.30"
gcloud-sdk = { version = "0.25.1", features = ["google-pubsub-v1"] }
Expand Down
17 changes: 17 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
reportinator:
# test key
keys: 'feef9c2dcd6a1175a97dfbde700fa54f58ce69d4f30963f70efcc7257636759f'
relays: "ws://localhost"

slack:
token: '<NOT_SET>'
channel_id: '<NOT_SET>'
signing_secret: '<NOT_SET>'

http:
# Best practice would probably say
# default this to 127.0.0.1, and override
# when deployed.
bind_addr: '0.0.0.0'
bind_port: 3000
templates_dir: 'templates'
Loading

0 comments on commit 36ee682

Please sign in to comment.