Merge pull request #1629 from Algustine/dev

fix: get real-ip instead of vercel edge network ip
main
Yifei Zhang 3 years ago committed by GitHub
commit b0b078c0fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,24 @@
{
"github": {
"silent": true
}
},
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "X-Real-IP",
"value": "$remote_addr"
},
{
"key": " X-Forwarded-For",
"value": "$proxy_add_x_forwarded_for"
},
{
"key": "Host",
"value": "$http_host"
}
]
}
]
}

Loading…
Cancel
Save