-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.schema.yaml
124 lines (124 loc) · 2.84 KB
/
settings.schema.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
120
121
122
123
124
$schema: https://json-schema.org/draft-07/schema
$defs:
Accounts:
description: InNoHassle-Accounts integration settings
properties:
api_url:
default: https://api.innohassle.ru/accounts/v0
title: Api Url
type: string
api_jwt_token:
format: password
title: Api Jwt Token
type: string
writeOnly: true
telegram_login_url:
default: https://innohassle.ru/account/connect-telegram
title: Telegram Login Url
type: string
telegram_bot_username:
default: InNoHassleBot
title: Telegram Bot Username
type: string
required:
- api_jwt_token
title: Accounts
type: object
ApiSettings:
properties:
app_root_path:
default: ''
title: App Root Path
type: string
cors_allow_origin_regex:
default: .*
title: Cors Allow Origin Regex
type: string
db_url:
examples:
- postgresql+asyncpg://postgres:postgres@localhost:5432/postgres
- postgresql+asyncpg://postgres:postgres@db:5432/postgres
title: Db Url
type: string
bot_token:
example: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
title: Bot Token
type: string
bot_webhook_url:
default: http://127.0.0.1:8002
title: Bot Webhook Url
type: string
api_key:
example: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
title: Api Key
type: string
required:
- db_url
- bot_token
- api_key
title: ApiSettings
type: object
BotSettings:
properties:
environment:
$ref: '#/$defs/Environment'
default: development
bot_token:
format: password
title: Bot Token
type: string
writeOnly: true
api_url:
default: http://127.0.0.1:8001
title: Api Url
type: string
redis_url:
anyOf:
- format: password
type: string
writeOnly: true
- type: 'null'
default: null
title: Redis Url
users:
default: []
items:
type: integer
title: Users
type: array
notification_time:
anyOf:
- format: time
type: string
- type: 'null'
default: null
title: Notification Time
required:
- bot_token
title: BotSettings
type: object
Environment:
enum:
- development
- production
- staging
title: Environment
type: string
properties:
api_settings:
anyOf:
- $ref: '#/$defs/ApiSettings'
- type: 'null'
default: null
bot_settings:
anyOf:
- $ref: '#/$defs/BotSettings'
- type: 'null'
default: null
accounts:
anyOf:
- $ref: '#/$defs/Accounts'
- type: 'null'
default: null
title: Settings
type: object