Не удалось настроить ссылку на «Чат». Убедитесь, что блокировщики рекламы отключены, и попробуйте перезагрузить страницу.
У меня много ошибок на форуме 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" закомментировано для исправления ошибки 429
так как возникали ошибки ограничения частоты запросов в nginx, а также появлялась ошибка 429 во всплывающем окне Discourse.
## 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
Я также отключил Rocket Loader в Cloudflare, так как из-за него страница Discourse зависала на бесконечной загрузке главной страницы. Как это исправить?
Может ли кто-нибудь помочь мне исправить все вышеуказанные проблемы и отображать реальные IP-адреса пользователей? Что не так или чего не хватает в моём файле app.yaml и в конфигурационном файле nginx? Какие изменения необходимо внести, чтобы навсегда исправить все вышеуказанные проблемы и ошибки? Я использую установленную версию
3.4.0.beta1-dev
Я использовал следующие команды для пересборки:
cd /var/discourse
git pull
./launcher bootstrap web_only && ./launcher destroy web_only && ./launcher start web_only
./launcher rebuild data;./launcher rebuild web_only
но я точно не знаю разницы между этими двумя командами.







