forked from koryxio/koryx-serv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.json
More file actions
76 lines (76 loc) · 1.63 KB
/
config.example.json
File metadata and controls
76 lines (76 loc) · 1.63 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
{
"server": {
"port": 8080,
"host": "0.0.0.0",
"root_dir": ".",
"read_timeout": 30,
"write_timeout": 30
},
"security": {
"enable_https": false,
"cert_file": "",
"key_file": "",
"basic_auth": {
"enabled": false,
"username": "admin",
"password": "secret",
"realm": "Restricted Area"
},
"cors": {
"enabled": false,
"allowed_origins": ["*"],
"allowed_methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
"allowed_headers": ["*"],
"allow_credentials": false,
"max_age": 3600
},
"rate_limit": {
"enabled": false,
"requests_per_ip": 100,
"burst_size": 20
},
"ip_whitelist": [],
"ip_blacklist": [],
"block_hidden_files": true,
"allowed_paths": [],
"blocked_paths": []
},
"performance": {
"enable_compression": true,
"compression_level": 6,
"enable_cache": true,
"cache_max_age": 3600,
"enable_etags": true,
"custom_headers": {
"X-Powered-By": "Serve"
}
},
"logging": {
"enabled": true,
"level": "info",
"access_log": true,
"error_log": true,
"log_file": "",
"color_output": true
},
"features": {
"directory_listing": false,
"index_files": ["index.html", "index.htm"],
"spa_mode": false,
"spa_index": "index.html",
"custom_error_pages": {
"404": "404.html",
"403": "403.html",
"500": "500.html"
}
},
"runtime_config": {
"enabled": false,
"route": "/runtime-config.js",
"format": "js",
"var_name": "APP_CONFIG",
"env_prefix": "APP_",
"env_variables": [],
"no_cache": true
}
}