Skip to content

Commit

Permalink
feat: add default configs
Browse files Browse the repository at this point in the history
  • Loading branch information
anvari1313 committed Sep 10, 2024
1 parent 9ce1756 commit 435b1e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/soteria/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ config:
tracer:
enabled: false


vendors:
snapp:
company: "snapp"
Expand Down
4 changes: 4 additions & 0 deletions config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ http_port: 9999
logger:
level: debug
stacktrace: true
black_list_user_logging:
iss: 0
user_ids: []

# Validator is the upstream backend service that can validate the tokens:
validator:
url: http://validator-lb
Expand Down
4 changes: 4 additions & 0 deletions internal/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ func Default() Config {
URL: "http://validator-lb",
Timeout: 5 * time.Second,
},
BlackListUserLogging: BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
},

Check warning on line 43 in internal/config/default.go

View check run for this annotation

Codecov / codecov/patch

internal/config/default.go#L40-L43

Added lines #L40 - L43 were not covered by tests
}
}

Expand Down

0 comments on commit 435b1e1

Please sign in to comment.