Add configuration for HTTP and debug mode

This commit is contained in:
eikendev 2020-07-31 20:04:33 +02:00
parent ba0306f384
commit 354ce0c08d
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
4 changed files with 22 additions and 5 deletions

View file

@ -20,6 +20,11 @@ type CryptoConfig struct {
// Configuration holds values that can be configured by the user.
type Configuration struct {
Debug bool `default:"false"`
HTTP struct {
ListenAddress string `default:""`
Port int `default:"8080"`
}
Database struct {
Dialect string `default:"sqlite3"`
Connection string `default:"pushbits.db"`