mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-04-28 08:11:08 -05:00
22 lines
533 B
Go
22 lines
533 B
Go
package serve
|
|
|
|
type Config struct {
|
|
Host string `koanf:"host"`
|
|
Port int `koanf:"port"`
|
|
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"`
|
|
}
|