-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings.toml
More file actions
72 lines (65 loc) · 2.67 KB
/
Copy pathsettings.toml
File metadata and controls
72 lines (65 loc) · 2.67 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
62
63
64
65
66
67
68
69
70
71
72
[app]
name = "SaleFlex.OFFICE"
version = "0.1.0a2"
mode = "standalone" # standalone | gate
store_code = "STORE-001"
office_code = "OFFICE-001"
icon = "static_files\\images\\saleflex-office.ico"
[logging]
level = "INFO" # DEBUG | INFO | WARNING | ERROR | CRITICAL
console = true
file = true
log_dir = "logs"
log_file = "saleflex-office.log"
[database]
engine = "sqlite" # sqlite | postgresql | mysql | oracle | mssql | firebird
driver = ""
user_name = ""
password = ""
database_name = "office.sqlite3"
# ─────────────────────────────────────────────────────────────────────────────
# POS Server endpoint
# SaleFlex.PyPOS terminals connect to this host:port when running in
# "office" mode (app.mode = "office" in PyPOS settings.toml).
# host = "0.0.0.0" listens on all interfaces; change to a specific IP to
# restrict access.
# ─────────────────────────────────────────────────────────────────────────────
[network]
host = "0.0.0.0"
port = 9000
api_prefix = "/api/v1"
request_timeout_seconds = 15
# Log every incoming HTTP request to the console/log file (Werkzeug access log).
# Set to true when debugging POS connectivity; set to false for quiet production runs.
access_log = true
# ─────────────────────────────────────────────────────────────────────────────
# SaleFlex.GATE integration
# Used only when app.mode = "gate".
# OFFICE will periodically pull new data from GATE and push local POS data to
# it (transactions, closures, warehouse movements, etc.).
# ─────────────────────────────────────────────────────────────────────────────
[gate]
base_url = "" # e.g. http://192.168.1.100:8800
api_key = ""
terminal_id = ""
sync_interval_minutes = 15
retry_attempts = 3
timeout_seconds = 15
[security]
password_hash = "bcrypt"
jwt_access_minutes = 30
jwt_refresh_days = 7
session_idle_timeout_minutes = 30
[import]
csv_enabled = true
xml_enabled = true
max_file_mb = 50
staging_dir = "imports\\staging"
archive_dir = "imports\\archive"
error_dir = "imports\\errors"
[reporting]
dashboard_enabled = true
csv_export_enabled = true
pdf_export_enabled = true
default_timezone = "UTC"
currency_code = "USD"