repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

pico / pkg / apps / pico
Eric Bower  ·  2026-01-25

config.go

 1package pico
 2
 3import (
 4	"strings"
 5
 6	"github.com/picosh/pico/pkg/shared"
 7)
 8
 9func NewConfigSite(service string) *shared.ConfigSite {
10	dbURL := shared.GetEnv("DATABASE_URL", "")
11	tuns := shared.GetEnv("TUNS_CONSOLE_SECRET", "")
12	withPipe := strings.ToLower(shared.GetEnv("PICO_PIPE_ENABLED", "true")) == "true"
13
14	return &shared.ConfigSite{
15		DbURL:      dbURL,
16		Space:      "pico",
17		Logger:     shared.CreateLogger(service, withPipe),
18		TunsSecret: tuns,
19	}
20}