mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	fix: get real-ip instead of vercel edge network ip
This commit is contained in:
		
							
								
								
									
										21
									
								
								vercel.json
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								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"
 | 
			
		||||
                }
 | 
			
		||||
            ]
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user