-
|
使用非443端口 部署https 在内页调整时没带端口号 怎么解决: method=POST path=/users/sign_in format=turbo_stream controller=Devise::SessionsController action=create status=302 allocations=829 duration=2.81 view=0.00 db=0.61 location=https://z.aa.bb/ time=2024-06-04 12:46:00 +0800 ip=172.26.0.1 username=admin 实际应该是 https://z.aa.bb:666/ |
Beta Was this translation helpful? Give feedback.
Answered by
icyleaf
Jun 4, 2024
Replies: 3 comments 18 replies
-
|
docker 部署的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
两种方法:
|
Beta Was this translation helpful? Give feedback.
18 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




找到方法解决了,另外 Zealot 还需要配置环境变量
RAILS_SERVE_STATIC_FILES=true或者把/publicURL 路径在 nginx 的 assets 静态文件规则上,否则静态资源无法正常加载。server { - listen 443 ssl http2; + listen 8443 ssl http2; - listen [::]:443 ssl http2; + listen [::]:8443 ssl http2; ... - proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Host $host:$server_port; ... }