Files
ocis/services/_includes/proxy-config-example.yaml
T
Ralf Haferkamp 85ffb85c9f commit ee974afebf
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>
2022-11-03 09:20:09 +00:00

141 lines
3.2 KiB
YAML

# Autogenerated
# Filename: proxy-config-example.yaml
tracing:
enabled: false
type: ""
endpoint: ""
collector: ""
log:
level: ""
pretty: false
color: false
file: ""
debug:
addr: 127.0.0.1:9205
token: ""
pprof: false
zpages: false
http:
addr: 0.0.0.0:9200
root: /
tls_cert: ~/.ocis/proxy/server.crt
tls_key: ~/.ocis/proxy/server.key
tls: true
reva:
address: 127.0.0.1:9142
tls:
mode: ""
'cacert env:': ""
grpc_client_tls:
mode: ""
'cacert env:': ""
policies:
- name: ocis
routes:
- endpoint: /
backend: http://localhost:9100
unprotected: true
- endpoint: /.well-known/
backend: http://localhost:9130
unprotected: true
- endpoint: /konnect/
backend: http://localhost:9130
unprotected: true
- endpoint: /signin/
backend: http://localhost:9130
unprotected: true
- endpoint: /archiver
backend: http://localhost:9140
- type: regex
endpoint: /ocs/v[12].php/cloud/user/signing-key
backend: http://localhost:9110
- type: regex
endpoint: /ocs/v[12].php/config
backend: http://localhost:9140
unprotected: true
- endpoint: /ocs/
backend: http://localhost:9140
- type: query
endpoint: /remote.php/?preview=1
backend: http://localhost:9115
- method: REPORT
endpoint: /remote.php/dav/
backend: http://localhost:9115
- method: REPORT
endpoint: /remote.php/webdav
backend: http://localhost:9115
- method: REPORT
endpoint: /dav/spaces
backend: http://localhost:9115
- type: query
endpoint: /dav/?preview=1
backend: http://localhost:9115
- type: query
endpoint: /webdav/?preview=1
backend: http://localhost:9115
- endpoint: /remote.php/
service: com.owncloud.web.ocdav
- endpoint: /dav/
service: com.owncloud.web.ocdav
- endpoint: /webdav/
service: com.owncloud.web.ocdav
- endpoint: /status
service: com.owncloud.web.ocdav
unprotected: true
- endpoint: /status.php
service: com.owncloud.web.ocdav
unprotected: true
- endpoint: /index.php/
service: com.owncloud.web.ocdav
- endpoint: /apps/
service: com.owncloud.web.ocdav
- endpoint: /data
backend: http://localhost:9140
unprotected: true
- endpoint: /app/list
backend: http://localhost:9140
unprotected: true
- endpoint: /app/
backend: http://localhost:9140
- endpoint: /graph/
backend: http://localhost:9120
- endpoint: /api/v0/settings
backend: http://localhost:9190
- endpoint: /settings.js
backend: http://localhost:9190
unprotected: true
oidc:
issuer: https://localhost:9200
insecure: false
access_token_verify_method: jwt
user_info_cache:
size: 1024
ttl: 10
jwks:
refresh_interval: 60
refresh_timeout: 10
refresh_limit: 60
refresh_unknown_kid: true
rewrite_well_known: false
token_manager:
jwt_secret: ""
policy_selector:
static:
policy: ocis
claims: null
regex: null
pre_signed_url:
allowed_http_methods:
- GET
enabled: true
account_backend: cs3
user_oidc_claim: preferred_username
user_cs3_claim: username
machine_auth_api_key: ""
auto_provision_accounts: false
enable_basic_auth: false
insecure_backends: false
auth_middleware:
credentials_by_user_agent: {}