Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

反向代理后页面加载不全 #216

Open
kyonefq opened this issue Dec 5, 2024 · 1 comment
Open

反向代理后页面加载不全 #216

kyonefq opened this issue Dec 5, 2024 · 1 comment

Comments

@kyonefq
Copy link

kyonefq commented Dec 5, 2024

在docker部署好以后,通过NPM反向代理,访问后如下图,直接访问页面没有问题
Snipaste_2024-12-05_12-31-35

@mnbbvcxxz
Copy link

我这NPM里,域名选项Advanced中自定义里填入下面这段后正常
location / {
proxy_pass http://172.17.0.1:7860;
proxy_set_header Host $host;
proxy_redirect http:// https://;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants