Antonio Mika
·
11 Oct 24
config.go
1package pipe
2
3import (
4 "github.com/picosh/pico/shared"
5 "github.com/picosh/utils"
6)
7
8func NewConfigSite() *shared.ConfigSite {
9 domain := utils.GetEnv("PIPE_DOMAIN", "pipe.pico.sh")
10 port := utils.GetEnv("PIPE_WEB_PORT", "3000")
11 dbURL := utils.GetEnv("DATABASE_URL", "")
12 protocol := utils.GetEnv("PIPE_PROTOCOL", "https")
13
14 return &shared.ConfigSite{
15 Domain: domain,
16 Port: port,
17 Protocol: protocol,
18 DbURL: dbURL,
19 Logger: shared.CreateLogger("pipe"),
20 Space: "pipe",
21 }
22}