From cf220dd2eb08589c7bd99b5a2c05eddf8f2e106f Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Fri, 17 Nov 2023 15:22:11 +0800 Subject: [PATCH] Update vercel.json --- vercel.json | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 0cae358a188..1890a0f7dba 100644 --- a/vercel.json +++ b/vercel.json @@ -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" + } + ] + } + ] }