Skip to content

Client Configuration

Configuration Sources

The path for the settings file has a hardcoded path for your specific operating system.

~/.config/warecache/settings.toml
%APPDATA%\warecache\settings.toml

Manual configuration is possible, but not recommended. If not found, the application will create the respective directories and files.

Example File

[log]
level = 0xF000
output = 0x000000F0

[server]
address = 'warecache.example.com'
port = 443
https = true

[ui]
default_view = 1

Settings

Log

Level

Verbosity of the logs output. Different log levels will filter out all messages above that level.

Default

0x0F00 (Info and above)

Setting
[log]
level = INT
Acceptable Values
Value Description
0x000F Allow only Error messages
0x00F0 Allow Warning and above
0x0F00 Allow Info and above
0xF000 Allow Debug and above

Output

Where the logs are output to. Could be the syslog, systemd (if enabled for OS), file, or STDIO/console.

Default

0x000000F0 (STDIO/Console)

Setting
[log]
output = INT
Acceptable Values
Value Description
0x000000F0 Output to STDIO/Console
0x00000F00 Output to syslog
0x0000F000 Output to file
0x000F0000 Output to journald

Server

Address

Address of the server that the client will connect to by default. Will be overwritten by connecting to a new server. This server will also attempt to be connected to on startup.

Default

app.warecache.com

Setting
[api]
address="string"
Acceptable values
Value Description
String IP Address or FQDN

Port

Server connection port

Default

443

Setting
[server]
port = INT
Acceptable values
Value Description
Integer Port number

HTTPS Toggle

Whether to use HTTPS to connect to or not. Defaults to true.

Default

True

Setting
[server]
https = BOOL
Acceptable values
Value Description
True Enable Debug mode
False Disable Debug mode

UI

Default View

The default view to open on application startup.

Default

1 (Project View)

Setting
[ui]
default_view = INT
Acceptable values
Value Description
0 Dashboard View
1 Project View
2 Part View
3 Inventory View
4 User View