Files
phylum/server/internal/command/serve/config.go
T
2025-05-27 23:45:38 +05:30

23 lines
579 B
Go

package serve
type Config struct {
Host string `koanf:"host"`
Port int `koanf:"port"`
WebAppSrc string `koanf:"webappsrc"`
PublinkPath string `koanf:"publinkpath"`
WebDAV WebDAVConfig `koanf:"webdav"`
CORS CORSConfig `koanf:"cors"`
Debug bool `koanf:"debug"`
LogBody bool `koanf:"logbody"`
}
type WebDAVConfig struct {
Enabled bool `koanf:"enabled"`
Path string `koanf:"path"`
}
type CORSConfig struct {
Enabled bool `koanf:"enabled"`
Origins []string `koanf:"origins"`
}