Skip to content

Commit fb7213a

Browse files
authored
Merge pull request #1384 from MikuuW/only-ipv6-support
Add: IPv6-only support => Update docker/nginx-unit.json
2 parents d67ed0c + 1aa7423 commit fb7213a

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

docker/nginx-unit.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
11
{
22
"listeners": {
3-
"*:8080": {
3+
"0.0.0.0:8080": {
44
"pass": "routes/main",
55
"forwarded": {
66
"client_ip": "X-Forwarded-For",
77
"protocol": "X-Forwarded-Proto",
88
"source": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
99
}
1010
},
11-
"*:8081": {
11+
"0.0.0.0:8081": {
1212
"pass": "routes/status",
1313
"forwarded": {
1414
"client_ip": "X-Forwarded-For",
1515
"protocol": "X-Forwarded-Proto",
1616
"source": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
1717
}
18+
},
19+
"[::]:8080": {
20+
"pass": "routes/main",
21+
"forwarded": {
22+
"client_ip": "X-Forwarded-For",
23+
"protocol": "X-Forwarded-Proto",
24+
"source": ["fc00::/7", "fe80::/10"]
25+
}
26+
},
27+
"[::]:8081": {
28+
"pass": "routes/status",
29+
"forwarded": {
30+
"client_ip": "X-Forwarded-For",
31+
"protocol": "X-Forwarded-Proto",
32+
"source": ["fc00::/7", "fe80::/10"]
33+
}
1834
}
1935
},
2036
"routes": {

0 commit comments

Comments
 (0)