-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrust-route.json
More file actions
71 lines (71 loc) · 1.59 KB
/
rust-route.json
File metadata and controls
71 lines (71 loc) · 1.59 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
{
"router_id": "192.168.1.1",
"interfaces": [
{
"name": "eth0",
"address": "192.168.1.1/24",
"enabled": true,
"cost": 1
}
],
"rip": {
"enabled": true,
"port": 520,
"update_interval": 30,
"garbage_collection_timeout": 120,
"infinity_metric": 16,
"split_horizon": true,
"poison_reverse": false
},
"ripv6": {
"enabled": false,
"port": 521,
"multicast_address": "ff02::9",
"update_interval": 30,
"garbage_collection_timeout": 120,
"infinity_metric": 16
},
"web": {
"enabled": true,
"bind_address": "0.0.0.0",
"port": 8080,
"auth_enabled": false,
"admin_username": "admin",
"admin_password_hash": "$2b$12$dummy.hash.for.default.config",
"static_dir": "web/static"
},
"auth": {
"enabled": false,
"jwt_secret": "replace-this-with-a-secure-random-secret-value",
"token_expiry_hours": 24,
"max_failed_attempts": 5,
"lockout_duration_minutes": 30,
"require_https": false,
"allowed_origins": [
"http://127.0.0.1:8080",
"http://localhost:8080"
]
},
"logging": {
"level": "info",
"file_path": "/var/log/rust-route.log",
"max_file_size": 10485760,
"max_files": 5,
"console_output": true
},
"metrics": {
"enabled": true,
"collection_interval": 60,
"retention_days": 7,
"export_prometheus": false,
"prometheus_port": 9090
},
"backup": {
"enabled": true,
"interval_hours": 24,
"max_backups": 7,
"backup_directory": "/var/backups/rust-route",
"include_routing_table": true,
"compress": true
}
}