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

nginx代理夜莺服务 #2419

Open
liuduzhuo opened this issue Jan 7, 2025 · 0 comments
Open

nginx代理夜莺服务 #2419

liuduzhuo opened this issue Jan 7, 2025 · 0 comments

Comments

@liuduzhuo
Copy link

夜莺怎么添加统一后缀可以让 nginx 进行服务转发呢?现在在 nginx 服务器 A上配置如下
location ^~ /nightingale/ {
proxy_pass http://服务器 Bip:17000/;
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;
}
这样配置后,浏览器访问找不到静态资源

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

1 participant