Repository navigation
Expand file tree
/
Copy pathconfig.example.toml
More file actions
76 lines (70 loc) · 3.02 KB
/
Copy pathconfig.example.toml
File metadata and controls
76 lines (70 loc) · 3.02 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
73
74
75
76
[network]
# The one hostname the stack will serve. Keep this as the hostname only.
stack_fqdn = "api-roborock.example.com"
bind_host = "0.0.0.0"
# Change these if you need custom published ports.
https_port = 555
mqtt_tls_port = 8881
# Optional reverse-proxy support. Leave unset to advertise the listener ports above.
# Set these when a proxy maps public HTTPS/MQTT ports to different backend ports.
# advertised_https_port = 443
# advertised_mqtt_tls_port = 8883
# listener_mode = "local_tls" terminates TLS in the server (default).
# Set "external_tls" only when a reverse proxy terminates TLS and forwards plain
# traffic to the server; the proxy must present a valid cert to clients. See docs/reverse_proxy.md.
# listener_mode = "local_tls"
region = "us"
# Optional timezone returned by the bootstrap location route.
# Defaults to the region default if unset ("Europe/Berlin" for "eu", "America/New_York" for "us",
# "Asia/Shanghai" for "cn", "Europe/Moscow" for "ru").
# timezone = "Europe/Berlin"
[broker]
# Set mode = "external" and host/port to your broker if you do not want embedded Mosquitto.
mode = "embedded"
host = "127.0.0.1"
port = 18830
mosquitto_binary = "mosquitto"
enable_topic_bridge = true
[storage]
data_dir = "/data"
[logging]
# Applies to each service .log and HTTP/MQTT .jsonl trace in runtime/.
# MiB per file (1-1024), plus this many numbered backups (0-20).
# 0 backups keeps only the active file; rotation remains enabled.
max_size_mb = 10
backup_count = 3
[tls]
# Cloudflare DNS-01 wildcard issuance. No public inbound access is required.
mode = "cloudflare_acme"
base_domain = "example.com"
email = "you@example.com"
cloudflare_token_file = "/run/secrets/cloudflare_token"
renew_days_before = 30
renew_check_seconds = 43200
acme_server = "zerossl"
[admin]
password_hash = "pbkdf2_sha256$600000$replace_me$replace_me"
session_secret = "replace-with-at-least-24-random-characters"
session_ttl_seconds = 86400
protocol_auth_enabled = true
new_connections_enabled = true
# Home Assistant/app logins use this email plus a local 6-digit PIN entered as the "code".
protocol_login_email = "you@example.com"
protocol_login_pin_hash = "pbkdf2_sha256$600000$replace_me$replace_me"
[turn]
# TURN/STUN server advertised to the robot so the camera (live video) preview can
# complete locally. Set mode to provided to run coturn in this container, or
# external to advertise an existing TURN server. Leave disabled to omit TURN.
# See docs/camera.md. The camera input used by the selected model must fit
# within 15 chars including any port and a trailing '/'. DNS and trusted TLS
# must cover that camera host/port. Unknown models conservatively need both
# token.r and country_domain endpoints configured.
# Provided mode requires publishing the listener + UDP49160-49179; Compose
# users must enable compose.turn.yaml. HA users must enable Network mappings.
mode = "disabled" # disabled | provided | external
host = "api-roborock.example.com" # reachable relay hostname
port = 3478
username = ""
password = ""
realm = "api-roborock.example.com"
ttl = 86400