-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.json
92 lines (81 loc) · 1.84 KB
/
config.json
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"server_features": {
"use_https": false,
"enable_rate_limiting": true,
"enable_ip_filtering": false,
"enable_static_file_cache": true,
"enable_gzip_compression": true,
"enable_brotli_compression": true,
"enable_basic_auth": false,
"enable_virtual_hosts": false,
"enable_custom_error_pages": false,
"enable_url_redirects": true,
"enable_email_verification": false
},
"server_config": {
"port": 8080,
"entry_point": "index.html",
"htdocs_dir": "htdocs",
"downloads_dir": "htdocs/downloads",
"log_file": "server.log"
},
"https_config": {
"certfile": "cert.pem",
"keyfile": "key.pem",
"cert_renewal_days": 30,
"cert_config": {
"key_size": 2048,
"subject": {
"C": "US",
"ST": "California",
"L": "San Francisco",
"O": "My Company",
"OU": "My Organization",
"CN": "localhost"
},
"serial_number": 1000,
"valid_days": 3650,
"signing_algorithm": "sha256"
}
},
"rate_limiting_config": {
"rate_limit": 10,
"rate_limit_burst": 5
},
"ip_filtering_config": {
"whitelist": [],
"blacklist": []
},
"caching_config": {
"cache_max_size": 10485760,
"cache_ttl": 60
},
"basic_auth_config": {
"auth_users": {
}
},
"virtual_hosts_config": {
"virtual_hosts": {
}
},
"error_pages_config": {
"error_pages": {
}
},
"url_redirects_config": {
"url_redirects": {
}
},
"database_config": {
"db_file": "server.db"
},
"email_config": {
"enable_email_verification": false,
"email_host": "smtp.example.com",
"email_port": 587,
"email_user": "[email protected]",
"email_password": "your_password",
"email_from": "[email protected]",
"site_url": "http://localhost:8080"
}
}