Configuration reference
All configuration sources in one place. Defaults come from the code.
8.1 Server environment variables
Section titled “8.1 Server environment variables”| Variable | Default | Meaning | Reader |
|---|---|---|---|
PASSWORD_HASH_PEPPER |
none | Argon2 pepper (policy password, recovery codes) and the source of the TOTP AES key. Effectively required. Both readers fall back to passwords.yaml → passwordHashPepper when it is absent |
util/password_hasher.dart, util/totp_secret_cipher.dart |
APP_URL |
http://localhost:8090 |
server_url in the QR |
config/app_config.dart |
APP_NAME |
Wonkru MDM |
Brand name fallback, alert email subject prefix | config/app_config.dart |
STORAGE_PATH |
storage |
File storage root (/app/storage in Docker) |
config/storage_config.dart |
LOCAL_CA_PATH |
certs/local-ca.crt |
The PEM served by /downloads/local-ca |
web/routes/local_ca_route.dart |
CLIENT_IP_SOURCE |
socket |
socket, proxy (X-Forwarded-For/Forwarded), or cloudflare (CF-Connecting-IP) |
service/client_ip_resolver.dart |
DEVICE_UPLOAD_MAX_SIZE_KB |
51200 |
Only feeds the default in the settings form; if the setting is not saved, the limit is a fixed 51200 KB | service/admin_settings_service.dart |
MAIL_MAILER |
log |
Used in the panel’s “SMTP not selected” warning | config/mail_config.dart |
MAIL_HOST |
127.0.0.1 |
If smtp_host is empty in the panel |
〃 |
MAIL_PORT |
587 |
〃 | 〃 |
MAIL_USERNAME, MAIL_PASSWORD |
empty | 〃 | 〃 |
MAIL_SCHEME |
empty | ssl / tls |
〃 |
MAIL_FROM_ADDRESS |
[email protected] |
〃 | 〃 |
MAIL_FROM_NAME |
Example |
〃 | 〃 |
SERVERPOD_PASSWORD_<key> |
Overrides any key in passwords.yaml |
Serverpod |
Fixed in the Docker image: runmode=production, serverid=default, logging=normal,
role=monolith. authCookie.secure comes from the config file but is overridden by
SERVERPOD_AUTH_COOKIE_SECURE (true on HTTPS, false on plain HTTP). A secure cookie is not
sent over HTTP.
Paths are relative to wonkru_mdm_server/lib/src/.
8.2 passwords.yaml keys
Section titled “8.2 passwords.yaml keys”| Key | Use |
|---|---|
database |
PostgreSQL password |
redis |
Redis password (Redis is disabled, it stays in the dev/test blocks) |
serviceSecret |
Serverpod service secret |
emailSecretHashPepper |
Email IDP password hash pepper (panel users) |
jwtHmacSha512PrivateKey |
JWT signing key |
jwtRefreshTokenHashPepper |
Refresh token pepper |
passwordHashPepper |
Fallback for the Argon2 pepper and TOTP encryption when PASSWORD_HASH_PEPPER is unset |
storageSigningKey |
Signed storage links, ≥32 characters. If absent, derived from the JWT key; if that is also absent, random per process (links die on restart) |
scloudAuthEmailKey |
Only for Serverpod Cloud email |
8.3 Server config files (wonkru_mdm_server/config/)
Section titled “8.3 Server config files (wonkru_mdm_server/config/)”| development | staging / production | test | |
|---|---|---|---|
| API | 8090, localhost http |
8080, public 443 https | 0 |
| Insights | 8081 | 8081 | 0 |
| Web | 8082, publicHost: 10.0.2.2 |
8082, public 443 https | 0 |
| DB | embedded (.serverpod/development/pgdata) |
db.internal…:5432, requireSsl |
embedded, wonkru_mdm_test |
| Redis | disabled | disabled | disabled |
maxRequestSize |
288 MB | 288 MB | |
authCookie.secure |
false | true | |
allowedOrigins |
localhost:8082, localhost:8099, 127.0.0.1:8099 |
single HTTPS panel origin | |
| Console log | on (text) | off |
generator.yaml: client_package_path: ../wonkru_mdm_client,
server_test_tools_path: test/integration/test_tools.
8.4 Settings managed from the panel (settings table)
Section titled “8.4 Settings managed from the panel (settings table)”These are managed on the Settings page in the panel. Defaults are in parentheses.
Device and policy
Section titled “Device and policy”| Key | Meaning |
|---|---|
default_policy |
Policy of a newly enrolled device |
device_enrollment_key |
Enrollment key, WNKR-XXXX-XXXX-XXXX (separate section in the panel; does not enter the form state) |
offline_timeout (5) |
“online” threshold in the panel, minutes |
device_alerts_offline_minutes (1440) |
Offline alert threshold |
device_alerts_duplicate_prevention_hours (24) |
Duration for not repeating the same alert |
device_offline_alert_last_sent |
Tracks the last time an offline alert was sent |
device_upload_max_size_kb (51200) |
Device upload limit |
policy_devices_updated_check_delay_minutes (30) |
“pending device” check after a policy update |
Upload limits (MB)
Section titled “Upload limits (MB)”upload_apk_max_size_mb (256), upload_file_max_size_mb (256),
upload_certificate_max_size_mb (10), upload_launcher_background_max_size_mb (2). All are bounded
by the maxRequestSize ceiling.
panel_timezone uses an IANA time zone name and defaults to UTC. panel_brand_name
appears in emails sent by the server.
smtp_enabled, smtp_host, smtp_port, smtp_username, smtp_password (stored in plain text),
smtp_encryption (none / tls / ssl), smtp_from_address, smtp_from_name.
Alerts
Section titled “Alerts”system_alert_routing: {"type_channels": {"<type>": ["database", "mail"]}}. The default is
database only. Alerts can be sent to the panel or by email; SMS delivery is unavailable.
Agent logs (WLog)
Section titled “Agent logs (WLog)”These settings go to the device as wlog_config in the policy payload.
| Key | Default |
|---|---|
wlog_console_min_level, wlog_db_min_level |
|
wlog_remote_min_level |
2 (info) |
wlog_max_local_entries |
1000 |
wlog_flush_threshold |
50 |
wlog_idle_flush_seconds |
60 |
wlog_retention_days |
7 |
wlog_remote_enabled |
off |
wlog_remote_endpoint, wlog_remote_auth_token |
|
wlog_remote_max_retries |
3 |
8.5 Panel configuration
Section titled “8.5 Panel configuration”| Source | Value |
|---|---|
--dart-define=SERVER_URL= |
Highest priority |
wonkru_mdm_flutter/assets/config.json |
{"apiUrl": "http://localhost:8090"} |
The server’s /assets/assets/config.json route |
At runtime in the compiled panel, the apiServer public address |
| Browser localStorage | ui.themeMode, ui.scale, ui.locale |
8.6 Agent configuration
Section titled “8.6 Agent configuration”wonkru_mdm_mobil/config.json
Section titled “wonkru_mdm_mobil/config.json”| Key | Example | Meaning |
|---|---|---|
HOST |
10.0.2.2 |
Default server host |
PORT |
8090 |
API port |
SCHEME |
http |
|
IT_PAGE_PASSWORD |
IT page offline backup password; change in deployment | |
BOTTOM_LEFT_APP_NAME |
Wonkru MDM |
Launcher bottom bar name |
The agent uses the hostname from server_url or SCHEME://HOST:PORT for the CA download.
If the API uses HTTPS, the setup screen suggests http://HOST/downloads/local-ca. You can
enter a different download URL during enrollment. HTTPS with your own TLS certificate
Constants in code (lib/Core/Constants/const.dart and managers)
Section titled “Constants in code (lib/Core/Constants/const.dart and managers)”| Constant | Value |
|---|---|
| Command debounce | 10 s |
| Config fetch interval | 30 min |
| Start-after-install wait | 3 s |
Stream welcome wait |
30 s |
| Heartbeat | 60 s |
| Reconnect | fixed 20 s |
| Not reapplying the same policy | 45 s |
| APK installation wait | 5 min |
| Command journal | 200 records |
| Offline ack queue | 100 |
Provisioning extras
Section titled “Provisioning extras”The QR passes server_url, device_code and enrollment_key to the agent.
8.7 Fixed limits (server)
Section titled “8.7 Fixed limits (server)”| Topic | Value |
|---|---|
| List page | default 25, maximum 200 |
| CSV export | maximum 50,000 rows |
| Command timeout | 2 min / 15 min for long actions |
| Pending command lifetime | 7 days |
| Command delivery attempt | 3 |
| Sync payload | 8 MiB |
| Apps per sync | 2000 |
| Signed link | panel 10 min, device 7 days |
| 2FA verification | 12 hours per session |
| 2FA lock | after 5 failures 30 s → max 15 min |
| Recovery code | 10, single-use |
| Device upload extensions | jpg, jpeg, png, gif, webp, bpm, mp3, mp4, pdf, txt, log, csv, zip, json, xml, vcard, vcf, avi, avif, mov, webm, ogg, wav, aac, m4a, flac, wma |
Rate limit table: Server.