-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.example.json
107 lines (101 loc) · 2.92 KB
/
config.example.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"system": {
"pidfile": "/tmp/nedomi_pidfile.pid",
"workdir": "/",
"user": "root"
},
"default_cache_type": "disk",
"default_cache_algorithm": "lru",
"cache_zones": {
"default": {
"path": "/home/iron4o/playfield/nedomi/cache1",
"storage_objects": 1023123,
"part_size": "2m"
},
"zone2": {
"path": "/home/iron4o/playfield/nedomi/cache2",
"storage_objects": 4723123,
"part_size": "4m"
}
},
"http": {
"listen": ":8282",
"max_headers_size": 1231241212,
"read_timeout": 12312310,
"write_timeout": 213412314,
"default_handlers": [
{
"type": "cache"
},
{
"type" : "proxy"
}
],
"default_cache_zone": "default",
"access_log": "/tmp/access.log",
"upstreams" : {
"ucdn": {
"balancing": "rendezvous",
"addresses": [
"http://near-one.ucdn.cmm|50",
"http://near-two.ucdn.com|50",
"http://far-one.example.com|5"
],
"settings": {
"max_connections_per_server": 100,
"resolve_addresses": false
}
}
},
"virtual_hosts": {
"localhost": {
"upstream": "ucdn",
"add_headers": {
"joro": "not",
"pesho" : ["is", "a", "dude"]
},
"cache_key": "1.1",
"locations": {
"/status": {
"handlers": [{ "type": "status" }]
},
"~ \\.jpg$": {
"comment": "/status/test.jpg is handled by the ",
"comment": "default virtual host handler"
}
}
},
"127.0.0.1": {
"upstream": "http://inv.bg",
"cache_zone": "zone2",
"cache_key": "2.1"
},
"cached.doycho.com": {
"upstream": "http://localhost",
"cache_zone": "zone2",
"cache_key": "1.2",
"cache_key_includes_query": true,
"cache_default_duration": "7h",
"locations": {
"/nana": {
"cache_default_duration": "168h"
}
}
},
"127.0.0.2": {
"aliases": [
"127.0.1.2",
"127.0.2.2",
"127.0.3.2"
],
"handlers": [{ "type" : "status" }]
}
}
},
"logger": {
"type": "std",
"settings": {
"level": "info"
}
}
}