搬到新服务器的烦恼

有意思,那确实出乎意料,但我会试试看。

好的——更新:

运行设置没有改变任何东西。它只是提示我输入主机并调整了一些小的设置。到目前为止仍然不行。重新构建时出现同样的错误。我还尝试运行 doctor,但也没有效果。

设置确实抱怨说主机在给定端口上无法访问,但事实并非如此。

我通过 nginx 代理提供服务:


  location / {
    error_page 502 =502 /errors/discourse-offline.html;
    proxy_intercept_errors on;
    proxy_headers_hash_max_size 1024;
    proxy_headers_hash_bucket_size 128;
    proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
    proxy_set_header Host $http_host;
    proxy_http_version 1.1;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_set_header X-Real-IP $remote_addr;
  }
}

这可能需要一些调整,但如果构建失败,那还不应该是网络服务器的问题。