groupware: introduce support for OC_INSECURE

* also look into the OC_INSECURE environment variable to allow
   accepting insecure TLS certificates

 * rename GROUPWARE_ALLOW_INSECURE_TLS to GROUPWARE_TLS_INSECURE to
   align with the nomenclature used by other backend services
This commit is contained in:
Pascal Bleser
2026-07-08 14:42:24 +02:00
parent 2006b1f6f8
commit bbccf54391
3 changed files with 3 additions and 2 deletions

2
.vscode/launch.json vendored
View File

@@ -147,7 +147,7 @@
"GROUPWARE_JMAP_MASTER_USERNAME": "admin@example.org",
"GROUPWARE_JMAP_MASTER_PASSWORD": "admin",
"GROUPWARE_SEND_DURATIONS_RESPONSE": "true",
"GROUPWARE_ALLOW_INSECURE_TLS": "true",
"GROUPWARE_TLS_INSECURE": "true",
"GROUPWARE_ENABLE_MOCK_DATA": "true",
"GROUPWARE_DEBUG_ADDR": "0.0.0.0:9203",

View File

@@ -69,6 +69,7 @@ services:
GROUPWARE_JMAP_BASE_URL: https://${STALWART_DOMAIN:-stalwart.opencloud.test}
GROUPWARE_JMAP_MASTER_USERNAME: "admin@example.org"
GROUPWARE_JMAP_MASTER_PASSWORD: "admin"
GROUPWARE_TLS_INSECURE: "true"
volumes:
- ./config/opencloud/app-registry.yaml:/etc/opencloud/app-registry.yaml
- ./config/opencloud/csp.yaml:/etc/opencloud/csp.yaml

View File

@@ -19,7 +19,7 @@ type HTTP struct {
CORS CORS `yaml:"cors"`
OpenCloudPublicURL string `yaml:"opencloud_public_url" env:"OC_URL;OC_PUBLIC_URL;GROUPWARE_PUBLIC_URL"`
SendDurationsResponse bool `yaml:"send_durations_response" env:"GROUPWARE_SEND_DURATIONS_RESPONSE"`
Insecure bool `yaml:"insecure" env:"GROUPWARE_ALLOW_INSECURE_TLS"`
Insecure bool `yaml:"tls_insecure" env:"OC_INSECURE;GROUPWARE_TLS_INSECURE" desc:"Whether to verify the server TLS certificates." introductionVersion:"1.0.0"`
TraceRequests bool `yaml:"trace_requests" env:"GROUPWARE_HTTP_TRACE_REQUESTS"`
TraceMaxRequestBodySize int64 `yaml:"trace_max_request_body_size" env:"GROUPWARE_HTTP_TRACE_MAX_REQUEST_BODY_SIZE"`
TraceResponses bool `yaml:"trace_responses" env:"GROUPWARE_HTTP_TRACE_RESPONSES"`