Author: Ralf Haferkamp <rhaferkamp@owncloud.com> Date: Thu Nov 3 10:17:08 2022 +0100 [full-ci] Introduce TLS Settings for go-micro based grpc services and clients (#4901) * Introduce TLS Settings for go-micro based grpc services and clients TLS for the services can be configure by setting the OCIS_MICRO_GRPC_TLS_ENABLED" "OCIS_MICRO_GRPC_TLS_CERTIFICATE" and "OCIS_MICRO_GRPC_TLS_KEY" enviroment variables. TLS for the clients can configured by setting the "OCIS_MICRO_GRPC_CLIENT_TLS_MODE" and "OCIS_MICRO_GRPC_CLIENT_TLS_CACERT" variables. By default TLS is disabled. Co-authored-by: Martin <github@diemattels.at> * Unify TLS configuration for all grpc services All grpc service (whether they're based on reva) or go-micro use the same set of config vars now. TLS for the services can be configure by setting the OCIS_GRPC_TLS_ENABLED, OCIS_GRPC_TLS_CERTIFICATE and OCIS_GRPC_TLS_KEY enviroment variables. TLS for the clients can configured by setting the OCIS_GRPC_CLIENT_TLS_MODE and OCIS_MICRO_GRPC_CLIENT_TLS_CACERT variables. There are no individual per service config vars currently. If really needed, per service tls configurations can be specified via config file. Co-authored-by: Martin <github@diemattels.at> Co-authored-by: Martin <github@diemattels.at>
47 lines
769 B
YAML
47 lines
769 B
YAML
# Autogenerated
|
|
# Filename: webdav-config-example.yaml
|
|
|
|
tracing:
|
|
enabled: false
|
|
type: ""
|
|
endpoint: ""
|
|
collector: ""
|
|
log:
|
|
level: ""
|
|
pretty: false
|
|
color: false
|
|
file: ""
|
|
debug:
|
|
addr: 127.0.0.1:9119
|
|
token: ""
|
|
pprof: false
|
|
zpages: false
|
|
grpc_client_tls:
|
|
mode: ""
|
|
'cacert env:': ""
|
|
http:
|
|
addr: 127.0.0.1:9115
|
|
root: /
|
|
cors:
|
|
allow_origins:
|
|
- '*'
|
|
allow_methods:
|
|
- GET
|
|
- POST
|
|
- PUT
|
|
- PATCH
|
|
- DELETE
|
|
- OPTIONS
|
|
allow_headers:
|
|
- Authorization
|
|
- Origin
|
|
- Content-Type
|
|
- Accept
|
|
- X-Requested-With
|
|
allow_credentials: true
|
|
ocis_public_url: https://127.0.0.1:9200
|
|
webdav_namespace: /users/{{.Id.OpaqueId}}
|
|
reva_gateway: 127.0.0.1:9142
|
|
reva_gateway_tls_mode: ""
|
|
reva_gateway_tls_cacert: ""
|