-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.yaml
More file actions
124 lines (117 loc) · 3.84 KB
/
config.yaml
File metadata and controls
124 lines (117 loc) · 3.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# FOCA configuration
# Available in app context as attributes of `current_app.config['FOCA']`
# Automatically validated via FOCA
# Cf. https://foca.readthedocs.io/en/latest/modules/foca.models.html
# Server configuration
# Cf. https://foca.readthedocs.io/en/latest/modules/foca.models.html#foca.models.config.ServerConfig
server:
host: '0.0.0.0'
port: 8080
debug: True
environment: development
testing: False
use_reloader: False
# Security configuration
# Cf. https://foca.readthedocs.io/en/latest/modules/foca.models.html#foca.models.config.SecurityConfig
security:
auth:
add_key_to_claims: True
algorithms:
- RS256
allow_expired: False
audience: null
validation_methods:
- userinfo
- public_key
validation_checks: any
# Database configuration
# Cf. https://foca.readthedocs.io/en/latest/modules/foca.models.html#foca.models.config.DBConfig
db:
host: mongodb
port: 27017
dbs:
serviceStore:
collections:
services:
indexes:
- keys:
id: 1
options:
'unique': True
service_info:
indexes:
- keys:
id: 1
options:
'unique': True
# API configuration
# Cf. https://foca.readthedocs.io/en/latest/modules/foca.models.html#foca.models.config.APIConfig
api:
specs:
- path:
- cloud_registry/api/20201108.11d2c12.service-info.yaml
- cloud_registry/api/20201108.e0358db.openapi.yaml
- cloud_registry/api/additions.openapi.yaml
add_operation_fields:
x-openapi-router-controller: ga4gh.registry.server
add_security_fields:
x-bearerInfoFunc: app.validate_token
disable_auth: False
connexion:
strict_validation: True
validate_responses: True
options:
swagger_ui: True
serve_spec: True
# Logging configuration
# Cf. https://foca.readthedocs.io/en/latest/modules/foca.models.html#foca.models.config.LogConfig
log:
version: 1
disable_existing_loggers: False
formatters:
standard:
class: logging.Formatter
style: "{"
format: "[{asctime}: {levelname:<8}] {message} [{name}]"
handlers:
console:
class: logging.StreamHandler
level: 20
formatter: standard
stream: ext://sys.stderr
root:
level: 10
handlers: [console]
exceptions:
required_members: [['detail'], ['status'], ['title']]
status_member: ['status']
exceptions: cloud_registry.exceptions.exceptions
custom:
endpoints:
service:
url_prefix: https
external_host: 0.0.0.0
external_port: 8080
api_path: ''
service_info:
id: "ELIXIR_CLOUD_SERVICE_REGISTRY_1"
name: "ELIXIR_CLOUD"
type:
group: "org.ga4gh"
artifact: "service-registry"
version: "1.0.0"
description: "Service registry for the ELIXIR Cloud network."
organization:
name: "ELIXIR Cloud & AAI"
url: "https://elixir-cloud.dcc.sib.swiss/"
contactUrl: "https://elixir-cloud.dcc.sib.swiss/"
documentationUrl: "https://github.com/elixir-cloud-aai/cloud-registry"
environment: "dev"
version: "1.0.0-dev-20201108.e0358db"
services:
id:
charset: string.ascii_uppercase + string.digits
length: 6
meta_version:
init: 1
increment: 1