Repository navigation
Expand file tree
/
Copy pathkynotes.example.yaml
More file actions
49 lines (49 loc) · 2.21 KB
/
Copy pathkynotes.example.yaml
File metadata and controls
49 lines (49 loc) · 2.21 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
server:
bind: "0.0.0.0:8080"
behind_proxy: true
trusted_proxies: ["127.0.0.1/32"]
read_header_timeout: "10s"
read_timeout: "60s"
write_timeout: "120s"
idle_timeout: "120s"
shutdown_grace: "20s"
max_request_bytes: 1048576
dev_insecure_cookies: false
data_dir: "/data"
secrets:
pairing_secret: ""
server_salt_key: ""
limits:
attachment_max_bytes: 26214400
chunk_bytes: 4194304
object_max_bytes: 10485760
upload_session_ttl: "15m"
user_quota_bytes: 1073741824
team_quota_bytes: 5368709120
gc:
enabled: true
retention: "168h"
interval: "1h"
ratelimit:
login_per_minute: 10 # also browser link-relay steps (claim, reveal, approve, cancel), per account
pairing_per_hour: 20 # device pairing tokens, browser link requests and identity writes (create, reset, recovery-code set/fetch), per account, separate buckets
upload_per_minute: 60
invitation_per_hour: 30 # invitation creation; accepts get their own bucket at this rate
link_poll_per_minute: 60 # browser link collect polls (every 4 s, backing off on 429), per account
exempt_networks: [] # office networks (e.g. "203.0.113.0/24") that skip the per-address sign-in buckets; never guest Wi-Fi, a VPN exit or the proxy (docs/DEPLOYMENT.md)
log:
level: "info"
format: "json"
backup:
dir: "" # local directory for sealed .kycap copies; empty disables
keep: 7 # newest N local copies kept
deposit_interval: "24h" # default schedule; "0" disables; floor 15m; the admin UI setting overrides
allow_private_recovery: false # admit a KyRecovery on a private or CGNAT address (HTTPS still required)
blob_target:
# SFTP requires strong keys; SMB/NTLM is legacy compatibility. Read docs/DEPLOYMENT.md before enabling.
url: "" # file:///mnt/backup/blobs, s3://bucket/prefix, sftp://user@host/path, smb://host/share/path
access_key: "" # S3 key ID or SFTP/SMB user; never put passwords in URLs
secret: "" # S3 secret, SFTP password/private PEM key, SMB password
host_key: "" # verified SFTP SHA256 fingerprint (required for SFTP)
s3_endpoint: "" # optional S3-compatible endpoint
s3_region: "us-east-1"