cskj / nginx.conf
wixcs's picture
Update nginx.conf
cfce562 verified
raw
history blame contribute delete
444 Bytes
events {}
http {
server {
listen 7860; #Hugging Face Spaces的默认端口为7860
location / {
proxy_pass http://localhost:3000; #假设你的应用运行在3000端口
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}