Skip to content

端口问题 #1528

Answered by icyleaf
stanle1 asked this question in Q&A
Jun 4, 2024 · 3 comments · 18 replies
Discussion options

You must be logged in to vote

找到方法解决了,另外 Zealot 还需要配置环境变量 RAILS_SERVE_STATIC_FILES=true 或者把 /public URL 路径在 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;

...
}

Replies: 3 comments 18 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
18 replies
@stanle1
Comment options

@icyleaf
Comment options

@icyleaf
Comment options

@icyleaf
Comment options

Answer selected by icyleaf
@stanle1
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants