mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-27 10:34:42 -05:00
* chore: bump reva to 2.52.2 * Merge pull request #42 from opencloud-eu/fix-web-theme-merge fix(web): merge copies of the theme sources so themeDefaults is never mutated * Merge pull request #43 from opencloud-eu/fix-search-trailing-not fix(search): handle missing operands in the bleve compiler * Merge pull request #44 from opencloud-eu/fix-search-highlight-escaping fix(search): escape file content in OpenSearch highlights --------- Co-authored-by: Ralf Haferkamp <r.haferkamp@opencloud.eu> Co-authored-by: Florian Schade <f.schade@icloud.com>
15 lines
1.3 KiB
Go
15 lines
1.3 KiB
Go
package config
|
|
|
|
import (
|
|
"github.com/opencloud-eu/opencloud/pkg/shared"
|
|
)
|
|
|
|
// HTTP defines the available http configuration.
|
|
type HTTP struct {
|
|
Addr string `yaml:"addr" env:"COLLABORATION_HTTP_ADDR" desc:"The bind address of the HTTP service." introductionVersion:"1.0.0"`
|
|
Namespace string `yaml:"-"`
|
|
TLS shared.HTTPServiceTLS `yaml:"tls"`
|
|
TrustedProxies []string `yaml:"trusted_proxies" env:"OC_TRUSTED_PROXIES;COLLABORATION_HTTP_TRUSTED_PROXIES" desc:"IP addresses and CIDR ranges of the reverse proxies in front of the collaboration service. The client address in the access log is only taken from the header set in COLLABORATION_HTTP_CLIENT_IP_HEADER if the request comes from one of these. Defaults to the loopback and private network ranges. See the Environment Variable Types description for more details." introductionVersion:"9.1.0"`
|
|
ClientIPHeader string `yaml:"client_ip_header" env:"OC_CLIENT_IP_HEADER;COLLABORATION_HTTP_CLIENT_IP_HEADER" desc:"The header a trusted reverse proxy sends the client address in, e.g. X-Real-IP or CF-Connecting-IP. X-Forwarded-For is read from the right, the first address that is not a trusted proxy is the client." introductionVersion:"9.1.0"`
|
|
}
|