mirror of
https://github.com/gomods/athens
synced 2026-02-03 14:20:31 +00:00
Upgrades the AWS SDK to v2. AWS S3 bucket urls will now error if they are not prefixed with a schema (example: https://).
12 lines
611 B
Go
12 lines
611 B
Go
package config
|
|
|
|
// Postgres config.
|
|
type Postgres struct {
|
|
Host string `envconfig:"ATHENS_INDEX_POSTGRES_HOST" validate:"required"`
|
|
Port int `envconfig:"ATHENS_INDEX_POSTGRES_PORT" validate:"required"`
|
|
User string `envconfig:"ATHENS_INDEX_POSTGRES_USER" validate:"required"`
|
|
Password string `envconfig:"ATHENS_INDEX_POSTGRES_PASSWORD" validate:""`
|
|
Database string `envconfig:"ATHENS_INDEX_POSTGRES_DATABASE" validate:"required"`
|
|
Params map[string]string `envconfig:"ATHENS_INDEX_POSTGRES_PARAMS" validate:"required"`
|
|
}
|