如何在外部域名的子目录中运行 Discourse?

This is never going to work really well with a “normal” install, you really should follow the subfolder install procedure. It will fix your CSP issues and many more. Apart from that, I think you’re almost there.