无法配置到“Chat”的链接。请确保已禁用广告阻止程序,并尝试刷新页面。

无法配置与“聊天”的链接。请确保已禁用广告拦截器,然后尝试重新加载页面。

我的 Discourse 论坛上出现了很多错误,

Uncaught SyntaxError: Unexpected identifier ‘#t
discourse-gamificati…df24ec1342936.js:26 Uncaught SyntaxError: Unexpected identifier ‘#a
discourse-gamificati…bc0b7464476afd.js:3 Uncaught SyntaxError: Unexpected identifier ‘#a
discourse-lazy-video…dfeb8ed6127f2.js:10 Uncaught SyntaxError: Unexpected identifier ‘#t
discourse-presence-f…f783c0d7b6fc3.js:12 Uncaught SyntaxError: Unexpected identifier ‘#s
discourse-whos-onlin…6a7b6c96d55f3.js:12 Uncaught SyntaxError: Unexpected identifier ‘#s
docker_manager_admin…db0da9a0d1924.js:11 Uncaught SyntaxError: Unexpected identifier ‘#t
poll-caab9fa7e923441…fdf6d171b8dd53.js:4 Uncaught SyntaxError: Unexpected identifier ‘#e
6fd02ed……74b887738ade31.js:5 Uncaught SyntaxError: Unexpected identifier ‘#e

到底是什么问题?

另外,我的用户的真实 IP 地址没有显示,所有 IP 地址都显示为 127.0.01

以下是我的 nginx 文件:

# /ask discourse start
location /ask {
    proxy_ssl_server_name       on;
    proxy_set_header Host $host; # faizan 确保正确设置了 Host 头。
    proxy_set_header X-Real-IP $remote_addr; # faizan 添加此项以查看是否发送了真实 IP
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_pass      http://localhost:1357/ask;
    proxy_redirect off; # faizan 确保任何重定向都不会被更改。

}

# /ask end

我在 Cloudflare 上,并且还注释掉了这一项

# - "templates/web.ratelimited.template.yml" commented it to fix 429 error
因为出现了速率限制 nginx 错误,并且在 Discourse 弹出窗口中出现了 429 错误。

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-voting.git
          - git clone https://github.com/discourse/discourse-akismet.git
          - git clone https://github.com/discourse/discourse-whos-online.git
          - git clone https://github.com/discourse/discourse-gamification.git
          - git clone https://github.com/discourse/discourse-adplugin.git
          - git clone https://github.com/codergautam/disable-email-verification-discourse.git
          - git clone https://github.com/discourse/discourse-subscriptions.git
          - git clone https://github.com/discourse/discourse-follow.git
          - git clone https://github.com/discourse/discourse-cakeday.git

我还禁用了 Cloudflare 的 rocket-loader,因为它导致我的 Discourse 页面陷入无限主页加载屏幕卡顿。如何解决这个问题?

有人能帮我解决以上所有问题并显示用户的真实 IP 地址吗?我的 app.yaml 文件和 nginx 配置文件中缺少或错误的是什么?我需要进行哪些更改才能永久修复所有上述问题和错误?我使用的是

3.4.0.beta1-dev

(7b14cd98c7)

我使用了以下命令进行重建

cd /var/discourse
git pull

./launcher bootstrap web_only && ./launcher destroy web_only && ./launcher start web_only

./launcher rebuild data;./launcher rebuild web_only

但我并不确切知道两者之间的区别。

3 个赞