hashicorp-demoapp / product-api-go

Products API written in Go
Mozilla Public License 2.0
42 stars 26 forks source link

Use env vars to configure app alternatively #22

Closed hanshasselberg closed 2 years ago

hanshasselberg commented 2 years ago

This PR enables configuration via environment variables. Both DB_CONNECTIONand BIND_ADDRESS have to be set, otherwise the code falls back to loading from file.