-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.yaml
119 lines (114 loc) · 3.12 KB
/
config.yaml
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
server:
host: '0.0.0.0'
port: 8080
debug: True
environment: development
testing: False
use_reloader: False
db:
host: mongodb
port: 27017
dbs:
trsStore:
collections:
tools:
indexes:
- keys:
id: 1
options:
'unique': True
service_info:
indexes:
- keys:
id: 1
options:
'unique': True
toolclasses:
indexes:
- keys:
id: 1
options:
'unique': True
api:
specs:
- path:
- api/20200131.11d2c12.service-info.yaml
- api/20230406.1dd4bf8.openapi.yaml
- api/additions.openapi.yaml
append: null
add_operation_fields:
x-openapi-router-controller: ga4gh.trs.server
connexion:
strict_validation: True
validate_responses: True
options:
swagger_ui: True
serve_spec: True
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: [['message'], ['code']]
status_member: ['code']
exceptions: trs_filer.errors.exceptions.exceptions
# Custom configuration
# Available in app context as attributes of `current_app.config.foca`
custom:
service:
url_prefix: https
external_host: trs-filer-alex.c03.k8s-popup.csc.fi
external_port: 443
api_path: ga4gh/trs/v2
service_info:
id: "TEMPID1"
name: "TEMP_STUB"
type:
group: "TEMP_GROUP"
artifact: "TEMP_ARTIFACT"
version: "v1"
description: "Description of service."
organization:
name: "Parent organization"
url: "parent/abc"
contactUrl: "contact/abc"
documentationUrl: "docs/abc"
createdAt: "2020-01-01"
updatedAt: "2020-01-01"
environment: "ENV"
version: "0.0.0"
tool:
id:
charset: string.ascii_uppercase + string.digits
length: 6
meta_version:
init: 1
increment: 1
version:
id:
charset: string.ascii_lowercase + string.digits
length: 6
meta_version:
init: 1
increment: 1
toolclass:
id:
charset: string.ascii_lowercase + string.digits
length: 6
meta_version:
init: 1
increment: 1
validation: False