-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.xml
47 lines (42 loc) · 1.42 KB
/
config.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<config>
<common>
</common>
<telegram_bot>
<token>${TELEGRAM_BOT_TOKEN}</token>
<admin_chat_id>123456789</admin_chat_id>
<allowed_users>user1,user2,user3</allowed_users>
</telegram_bot>
<parser>
<source>
<schedule_url>https://mai.ru/education/studies/schedule/index.php</schedule_url>
<groups_url>https://mai.ru/education/studies/schedule/groups.php</groups_url>
<api_url>https://public.mai.ru/schedule/data</api_url>
</source>
<database>
<username>${DATABASE_USERNAME}</username>
<password>${DATABASE_PASSWORD}</password>
<host>${DATABASE_HOST}</host>
<port>5432</port>
<name>schedule</name>
</database>
<parsing>
<interval>3600</interval>
<retry_attempts>3</retry_attempts>
<retry_delay>300</retry_delay>
<chunk_size>20</chunk_size>
<chunk_delay>1</chunk_delay>
<concurrent_requests>15</concurrent_requests>
</parsing>
</parser>
<web_app>
<host>0.0.0.0</host>
<port>8000</port>
<secret_key>${SECRET_KEY}</secret_key>
<allowed_origins>http://localhost:3000</allowed_origins>
</web_app>
<mini_app>
<api_url>https://api.example.com</api_url>
<version>1.0.0</version>
</mini_app>
</config>