2021-03-09 08:05:07 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
var Config = HMNConfig{
|
2021-05-04 09:24:31 +00:00
|
|
|
Env: Dev,
|
|
|
|
Addr: ":9001",
|
|
|
|
BaseUrl: "http://handmade.local:9001",
|
2021-03-09 08:05:07 +00:00
|
|
|
Postgres: PostgresConfig{
|
|
|
|
User: "hmn",
|
|
|
|
Password: "password",
|
|
|
|
Hostname: "handmade.local",
|
|
|
|
Port: 5454,
|
|
|
|
DbName: "hmn",
|
2021-04-06 06:10:15 +00:00
|
|
|
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-03-09 08:05:07 +00:00
|
|
|
}
|