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>
63 lines
1008 B
YAML
63 lines
1008 B
YAML
# Autogenerated
|
|
# Filename: settings-config-example.yaml
|
|
|
|
tracing:
|
|
enabled: false
|
|
type: ""
|
|
endpoint: ""
|
|
collector: ""
|
|
log:
|
|
level: ""
|
|
pretty: false
|
|
color: false
|
|
file: ""
|
|
debug:
|
|
addr: 127.0.0.1:9194
|
|
token: ""
|
|
pprof: false
|
|
zpages: false
|
|
http:
|
|
addr: 127.0.0.1:9190
|
|
root: /
|
|
cache_ttl: 604800
|
|
cors:
|
|
allow_origins:
|
|
- '*'
|
|
allow_methods:
|
|
- GET
|
|
- POST
|
|
- PUT
|
|
- PATCH
|
|
- DELETE
|
|
- OPTIONS
|
|
allow_headers:
|
|
- Authorization
|
|
- Origin
|
|
- Content-Type
|
|
- Accept
|
|
- X-Requested-With
|
|
allow_credentials: true
|
|
grpc:
|
|
addr: 127.0.0.1:9191
|
|
tls:
|
|
enabled: false
|
|
cert: ""
|
|
key: ""
|
|
grpc_client_tls:
|
|
mode: ""
|
|
'cacert env:': ""
|
|
store_type: metadata
|
|
data_path: ~/.ocis/settings
|
|
metadata_config:
|
|
gateway_addr: 127.0.0.1:9215
|
|
storage_addr: 127.0.0.1:9215
|
|
system_user_id: ""
|
|
system_user_idp: internal
|
|
system_user_api_key: ""
|
|
admin_user_id: ""
|
|
asset:
|
|
path: ""
|
|
token_manager:
|
|
jwt_secret: ""
|
|
set_default_assignments: false
|