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>
76 lines
1.5 KiB
YAML
76 lines
1.5 KiB
YAML
# Autogenerated
|
|
# Filename: sharing-config-example.yaml
|
|
|
|
tracing:
|
|
enabled: false
|
|
type: ""
|
|
endpoint: ""
|
|
collector: ""
|
|
log:
|
|
level: ""
|
|
pretty: false
|
|
color: false
|
|
file: ""
|
|
debug:
|
|
addr: 127.0.0.1:9151
|
|
token: ""
|
|
pprof: false
|
|
zpages: false
|
|
grpc:
|
|
addr: 127.0.0.1:9150
|
|
tls:
|
|
enabled: false
|
|
cert: ""
|
|
key: ""
|
|
protocol: tcp
|
|
token_manager:
|
|
jwt_secret: ""
|
|
reva:
|
|
address: 127.0.0.1:9142
|
|
tls:
|
|
mode: ""
|
|
'cacert env:': ""
|
|
events:
|
|
endpoint: 127.0.0.1:9233
|
|
cluster: ocis-cluster
|
|
tls_insecure: false
|
|
tls_root_ca_cert_path: ""
|
|
enable_tls: false
|
|
skip_user_groups_in_token: false
|
|
user_sharing_driver: jsoncs3
|
|
user_sharing_drivers:
|
|
jsoncs3:
|
|
provider_addr: 127.0.0.1:9215
|
|
system_user_id: ""
|
|
system_user_idp: internal
|
|
system_user_api_key: ""
|
|
cache_ttl: 0
|
|
json:
|
|
file: ~/.ocis/storage/shares.json
|
|
cs3:
|
|
provider_addr: 127.0.0.1:9215
|
|
system_user_id: ""
|
|
system_user_idp: internal
|
|
system_user_api_key: ""
|
|
owncloudsql:
|
|
db_username: owncloud
|
|
db_password: ""
|
|
db_host: mysql
|
|
db_port: 3306
|
|
db_name: owncloud
|
|
user_storage_mount_id: ""
|
|
public_sharing_driver: jsoncs3
|
|
public_sharing_drivers:
|
|
json:
|
|
file: ~/.ocis/storage/publicshares.json
|
|
jsoncs3:
|
|
provider_addr: 127.0.0.1:9215
|
|
system_user_id: ""
|
|
system_user_idp: internal
|
|
system_user_api_key: ""
|
|
cs3:
|
|
provider_addr: 127.0.0.1:9215
|
|
system_user_id: ""
|
|
system_user_idp: internal
|
|
system_user_api_key: ""
|