-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.tpl.py
109 lines (93 loc) · 2.51 KB
/
settings.tpl.py
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
from os.path import expanduser, join
## ------------- ##
## 1CV8 platform ##
## ------------- ##
V8_CLUSTER_ADMIN_CREDENTIALS = ("Администратор", "cluster_admin_password")
V8_CLUSTER_CONTROL_MODE = "com"
V8_INFOBASES_CREDENTIALS = {
"default": ("Администратор", "infobase_user_password"),
"accounting": ("БухАдминистратор", "infobase_user_password"),
"trade": ("УТАдминистратор", "infobase_user_password"),
}
V8_INFOBASES_EXCLUDE = ["accounting_for_tests", "trade_copy"]
V8_INFOBASES_ONLY = ["accounting_production", "trade_production"]
V8_RAS = {
"address": "localhost",
"port": "1545",
}
V8_SERVER_AGENT = {
"address": "localhost",
"port": "1540",
}
V8_PERMISSION_CODE = "0000"
V8_PLATFORM_PATH = join("C:\\", "Program Files", "1cv8")
## ------ ##
## Backup ##
## ------ ##
BACKUP_CONCURRENCY = 3
BACKUP_PATH = join(".", "backup")
BACKUP_PG = False
BACKUP_RETENTION_DAYS = 30
BACKUP_REPLICATION = False
BACKUP_REPLICATION_CONCURRENCY = 3
BACKUP_REPLICATION_PATHS = [
join("\\\\192.168.1.2", "backup", "1cv8"),
]
BACKUP_RETRIES_V8 = 1
BACKUP_RETRIES_PG = 1
BACKUP_TIMEOUT_V8 = 1200
## ------ ##
## Update ##
## ------ ##
UPDATE_CONCURRENCY = 3
UPDATE_PATH = join(expanduser("~"), "AppData", "Roaming", "1C", "1cv8", "tmplts")
## ----------- ##
## Maintenance ##
## ----------- ##
MAINTENANCE_CONCURRENCY = 3
MAINTENANCE_PG = False
MAINTENANCE_V8 = False
MAINTENANCE_LOG_RETENTION_DAYS = 60
MAINTENANCE_REGISTRATION_LOG_RETENTION_DAYS = 90
MAINTENANCE_TIMEOUT_V8 = 600
## ---------- ##
## Amazon S3 ##
## ---------- ##
AWS_ENABLED = False
AWS_CONCURRENCY = 9
AWS_ENDPOINT_URL = ""
AWS_ACCESS_KEY_ID = ""
AWS_SECRET_ACCESS_KEY = ""
AWS_REGION_NAME = ""
AWS_BUCKET_NAME = ""
AWS_RETENTION_DAYS = 90
AWS_RETRIES = 1
## ---------- ##
## PostgreSQL ##
## ---------- ##
PG_CREDENTIALS = {
"postgres@localhost": "postgres_user_password",
"[email protected]:5433": "postgres_user_password",
}
PG_BIN_PATH = join("C:\\", "Program Files", "PostgreSQL", "14.2-1.1C", "bin")
## ------------- ##
## Notifications ##
## ------------- ##
NOTIFY_EMAIL_ENABLED = False
NOTIFY_EMAIL_CAPTION = "1cv8-mgmt backup"
NOTIFY_EMAIL_CONNECT_TIMEOUT = 10
NOTIFY_EMAIL_SMTP_HOST = ""
NOTIFY_EMAIL_SMTP_PORT = 25
NOTIFY_EMAIL_SMTP_SSL_REQUIRED = False
NOTIFY_EMAIL_LOGIN = ""
NOTIFY_EMAIL_PASSWORD = ""
NOTIFY_EMAIL_FROM = ""
NOTIFY_EMAIL_TO = [
"",
]
## ------- ##
## Logging ##
## ------- ##
LOG_FILENAME = "1cv8-mgmt-tool.log"
LOG_LEVEL = "DEBUG"
LOG_PATH = join(".", "log")