我认为正确的解决方案组合如下:
正如 @itsbhanusharma 所述:
编辑 /var/discourse/containers/app.yml 并将端口修改为自定义端口,我使用的是:
- "8080:80" #http
- "4343:443" #https
执行了 ./launcher rebuild app
随后,我修改了外部可访问的代理,将 80/443 端口上的请求转发到 http://internal_ip:8080。
在运行 sudo nginx -t 和 sudo systemctl restart nginx 之后,我登录到 https://discourse.mobiusnode.io 服务器(该服务器此前仍显示上述问题),并启用了 force_https 选项,此后似乎一切正常。
我现在将在其余服务器/基础设施上复现此过程。