fix(config): add the option of a default provider

This commit is contained in:
Thomas Maurice 2024-02-12 17:31:12 +01:00
parent 582fc381ca
commit 5a4ee21561
Signed by: thomas
GPG key ID: 1D577F50583032A6
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,7 @@ postgres:
user: postgres user: postgres
password: postgres123 password: postgres123
sslmode: disable sslmode: disable
defaultProvider: ovh
providers: providers:
ovh: ovh:
application_key: <CHANGEME> application_key: <CHANGEME>

View file

@ -16,7 +16,8 @@ type Config struct {
Database string `yaml:"database"` Database string `yaml:"database"`
SSLMode string `yaml:"sslmode"` SSLMode string `yaml:"sslmode"`
} `yaml:"postgres"` } `yaml:"postgres"`
Providers struct { DefaultProvider string `yaml:"defaultProvider"`
Providers struct {
OVH *providerConfigs.OVHConfig `yaml:"ovh"` OVH *providerConfigs.OVHConfig `yaml:"ovh"`
} `yaml:"providers"` } `yaml:"providers"`
} }