Skip to content

Commit

Permalink
Update nginx-unit.json with new listeners and forwarded sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikulaswillaschek authored and tobiasge committed Feb 5, 2025
1 parent d67ed0c commit 230cd09
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions docker/nginx-unit.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,49 @@
{
"listeners": {
"*:8080": {
"0.0.0.0:8080": {
"pass": "routes/main",
"forwarded": {
"client_ip": "X-Forwarded-For",
"protocol": "X-Forwarded-Proto",
"source": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
"source": [
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16"
]
}
},
"*:8081": {
"0.0.0.0:8081": {
"pass": "routes/status",
"forwarded": {
"client_ip": "X-Forwarded-For",
"protocol": "X-Forwarded-Proto",
"source": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
"source": [
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16"
]
}
},
"[::]:8080": {
"pass": "routes/main",
"forwarded": {
"client_ip": "X-Forwarded-For",
"protocol": "X-Forwarded-Proto",
"source": [
"fc00::/7",
"fe80::/10"
]
}
},
"[::]:8081": {
"pass": "routes/status",
"forwarded": {
"client_ip": "X-Forwarded-For",
"protocol": "X-Forwarded-Proto",
"source": [
"fc00::/7",
"fe80::/10"
]
}
}
},
Expand Down

0 comments on commit 230cd09

Please sign in to comment.