hmn/src/config/config.go.example

38 lines
798 B
Plaintext
Raw Normal View History

2021-03-09 08:05:07 +00:00
package config
import (
"github.com/jackc/pgx/v4"
"github.com/rs/zerolog"
)
2021-03-09 08:05:07 +00:00
var Config = HMNConfig{
Env: Dev,
Addr: ":9001",
PrivateAddr: ":9002",
BaseUrl: "http://handmade.local:9001",
LogLevel: zerolog.TraceLevel,
2021-03-09 08:05:07 +00:00
Postgres: PostgresConfig{
User: "hmn",
Password: "password",
Hostname: "handmade.local",
Port: 5454,
DbName: "hmn",
LogLevel: pgx.LogLevelTrace,
MinConn: 2, // Keep these low for dev, high for production
MaxConn: 2,
2021-03-09 08:05:07 +00:00
},
2021-05-04 13:23:02 +00:00
Auth: AuthConfig{
CookieDomain: ".handmade.local",
CookieSecure: false,
},
2021-06-22 09:50:40 +00:00
DigitalOcean: DigitalOceanConfig{
AssetsSpacesKey: "",
AssetsSpacesSecret: "",
AssetsSpacesRegion: "",
AssetsSpacesEndpoint: "",
AssetsSpacesBucket: "",
AssetsPathPrefix: "",
AssetsPublicUrlRoot: "",
},
2021-03-09 08:05:07 +00:00
}