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

增加Apache https监听,解决Nginx反向代理出现的Mixed-Content问题 #39

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

HisAtri
Copy link
Contributor

@HisAtri HisAtri commented Mar 3, 2024

  • 增加监听https,默认端口 https:8088, http:8089
  • 添加一组自签证书,在/etc/ssl路径中
  • 已测试Nginx反向代理后无混合内容错误
  • 已测试Buildx构建正常

@HalcyonAzure
Copy link
Owner

非常感谢PR!不过能否询问下”Nginx方向代理导致Mixed-Content问题“具体会体现在哪里呢?我自己目前用nginx直接反代Apache的http端口服务没有看到过这个报错。

@HisAtri
Copy link
Contributor Author

HisAtri commented Mar 4, 2024

非常感谢PR!不过能否询问下”Nginx方向代理导致Mixed-Content问题“具体会体现在哪里呢?我自己目前用nginx直接反代Apache的http端口服务没有看到过这个报错。

这个bug关联 lsky-org/lsky-pro#317 ,根本原因是原项目使用后端判断协议类型,如果CDN使用HTTP回源,或者当前Docker使用Nginx反向代理http地址,会导致后端获取错误的协议,进而在构建页面时使用http协议的静态资源,导致Mixed-Content问题(https协议的网站中存在http资源)。

这种方式就是使得反向代理的协议与服务器使用的协议一致,如果服务器用了https加密,那么使用https地址进行反向代理可以让后端页面生成时使用一致的协议,避免Mixed-Content。

@HalcyonAzure HalcyonAzure merged commit c472d45 into HalcyonAzure:master Mar 5, 2024
@HalcyonAzure
Copy link
Owner

了解了,抱歉回复不及时,这就Merge

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

Successfully merging this pull request may close these issues.

None yet

2 participants