mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-08 21:18:52 -06:00
17 lines
577 B
Go
17 lines
577 B
Go
package config
|
|
|
|
// HTTP defines the available http configuration.
|
|
type HTTP struct {
|
|
Addr string `ocisConfig:"addr" env:"GRAPH_EXPLORER_HTTP_ADDR"`
|
|
Root string `ocisConfig:"root" env:"GRAPH_EXPLORER_HTTP_ROOT"`
|
|
Namespace string `ocisConfig:"-" yaml:"-"`
|
|
}
|
|
|
|
// 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:"allowed_credentials"`
|
|
}
|