Files
opencloud/webdav/pkg/config/http.go
2022-01-07 16:04:52 +00:00

18 lines
571 B
Go

package config
// CORS defines the available cors configuration.
type CORS struct {
AllowedOrigins []string `ocisConfig:"allowed_origins"`
AllowedMethods []string `ocisConfig:"allowed_methods"`
AllowedHeaders []string `ocisConfig:"allowed_headers"`
AllowCredentials bool `ocisConfig:"allow_credentials"`
}
// HTTP defines the available http configuration.
type HTTP struct {
Addr string `ocisConfig:"addr" env:"WEBDAV_HTTP_ADDR"`
Namespace string
Root string `ocisConfig:"root" env:"WEBDAV_HTTP_ROOT"`
CORS CORS `ocisConfig:"cors"`
}