Merge pull request #1347 from tobiasge/1331-forwarded-for

Fixes #1331: Added 'forwarded' section Unit config
This commit is contained in:
Tobias Genannt 2024-11-07 09:06:56 +01:00 committed by GitHub
commit 7ccd618c58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,16 +1,20 @@
{
"listeners": {
"0.0.0.0:8080": {
"pass": "routes/main"
"*: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"]
}
},
"[::]:8080": {
"pass": "routes/main"
},
"0.0.0.0:8081": {
"pass": "routes/status"
},
"[::]:8081": {
"pass": "routes/status"
"*: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"]
}
}
},
"routes": {