-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.schema.yaml
More file actions
61 lines (60 loc) · 1.56 KB
/
settings.schema.yaml
File metadata and controls
61 lines (60 loc) · 1.56 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
$schema: https://json-schema.org/draft-07/schema
$defs:
Accounts:
additionalProperties: false
description: InNoHassle Accounts integration settings
properties:
api_url:
default: https://api.innohassle.ru/accounts/v0
description: URL of the Accounts API
title: Api Url
type: string
title: Accounts
type: object
Environment:
enum:
- development
- production
title: Environment
type: string
additionalProperties: false
description: Settings for the application.
properties:
$schema:
default: null
title: $Schema
type: string
environment:
$ref: '#/$defs/Environment'
default: development
description: App environment flag
app_root_path:
default: ''
description: Prefix for the API path (e.g. "/api/v0")
title: App Root Path
type: string
cors_allow_origin_regex:
default: .*
description: 'Allowed origins for CORS: from which domains requests to the API
are allowed.
Specify as a regex: `https://.*.innohassle.ru`'
title: Cors Allow Origin Regex
type: string
static_mount_path:
default: /static
description: Path to mount static files
title: Static Mount Path
type: string
static_directory:
default: static
description: Path to the directory with static files
format: path
title: Static Directory
type: string
accounts:
$ref: '#/$defs/Accounts'
default:
api_url: https://api.innohassle.ru/accounts/v0
description: InNoHassle-Accounts integration settings
title: Settings
type: object