generated from ghga-de/microservice-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_schema.json
163 lines (163 loc) · 4.66 KB
/
config_schema.json
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{
"title": "ModSettings",
"description": "Modifies the orginal Settings class provided by the user",
"type": "object",
"properties": {
"host": {
"title": "Host",
"description": "IP of the host.",
"default": "127.0.0.1",
"env_names": [
"white_mountains_host"
],
"type": "string"
},
"port": {
"title": "Port",
"description": "Port to expose the server on the specified host",
"default": 8080,
"env_names": [
"white_mountains_port"
],
"type": "integer"
},
"log_level": {
"title": "Log Level",
"description": "Controls the verbosity of the log.",
"default": "info",
"env_names": [
"white_mountains_log_level"
],
"enum": [
"critical",
"error",
"warning",
"info",
"debug",
"trace"
],
"type": "string"
},
"auto_reload": {
"title": "Auto Reload",
"description": "A development feature. Set to `True` to automatically reload the server upon code changes",
"default": false,
"env_names": [
"white_mountains_auto_reload"
],
"type": "boolean"
},
"workers": {
"title": "Workers",
"description": "Number of workers processes to run.",
"default": 1,
"env_names": [
"white_mountains_workers"
],
"type": "integer"
},
"api_root_path": {
"title": "Api Root Path",
"description": "Root path at which the API is reachable. This is relative to the specified host and port.",
"default": "/",
"env_names": [
"white_mountains_api_root_path"
],
"type": "string"
},
"openapi_url": {
"title": "Openapi Url",
"description": "Path to get the openapi specification in JSON format. This is relative to the specified host and port.",
"default": "/openapi.json",
"env_names": [
"white_mountains_openapi_url"
],
"type": "string"
},
"docs_url": {
"title": "Docs Url",
"description": "Path to host the swagger documentation. This is relative to the specified host and port.",
"default": "/docs",
"env_names": [
"white_mountains_docs_url"
],
"type": "string"
},
"cors_allowed_origins": {
"title": "Cors Allowed Origins",
"description": "A list of origins that should be permitted to make cross-origin requests. By default, cross-origin requests are not allowed. You can use ['*'] to allow any origin.",
"example": [
"https://example.org",
"https://www.example.org"
],
"env_names": [
"white_mountains_cors_allowed_origins"
],
"type": "array",
"items": {
"type": "string"
}
},
"cors_allow_credentials": {
"title": "Cors Allow Credentials",
"description": "Indicate that cookies should be supported for cross-origin requests. Defaults to False. Also, cors_allowed_origins cannot be set to ['*'] for credentials to be allowed. The origins must be explicitly specified.",
"example": [
"https://example.org",
"https://www.example.org"
],
"env_names": [
"white_mountains_cors_allow_credentials"
],
"type": "boolean"
},
"cors_allowed_methods": {
"title": "Cors Allowed Methods",
"description": "A list of HTTP methods that should be allowed for cross-origin requests. Defaults to ['GET']. You can use ['*'] to allow all standard methods.",
"example": [
"*"
],
"env_names": [
"white_mountains_cors_allowed_methods"
],
"type": "array",
"items": {
"type": "string"
}
},
"cors_allowed_headers": {
"title": "Cors Allowed Headers",
"description": "A list of HTTP request headers that should be supported for cross-origin requests. Defaults to []. You can use ['*'] to allow all headers. The Accept, Accept-Language, Content-Language and Content-Type headers are always allowed for CORS requests.",
"example": [],
"env_names": [
"white_mountains_cors_allowed_headers"
],
"type": "array",
"items": {
"type": "string"
}
},
"service_name": {
"title": "Service Name",
"default": "white_mountains",
"env_names": [
"white_mountains_service_name"
],
"type": "string"
},
"language": {
"title": "Language",
"default": "German",
"env_names": [
"white_mountains_language"
],
"enum": [
"Greek",
"Croatian",
"French",
"German"
],
"type": "string"
}
},
"additionalProperties": false
}