如何临时关闭论坛

Hello,

I searched in the settings but I cannot find a way to temporarily disable a forum (such as to disable it for upgrades/changes/etc.). Where would I find such an option?

I want to disable logins that are not administrators and have it show as offline should anyone attempt to sign in.

Thanks

2 个赞

In the backup area, press the “enable read only mode” button.

4 个赞

In that section I only see:

Enable read only mode while taking a backup

There doesn’t seem to be a more ‘permanent’ version. Also if read only would be the only way, can I disable logins as well?

1 个赞

6 个赞

Got it thank you! Was looking in the Backup Settings instead.

Also, in the event I wish to disable log ins or take the forum completely offline is this possible?

2 个赞

If you don’t want anyone to access it change your a record and add it to your hosts.

You can disable logins via your site settings, or re-rerun the setup wizard which will also allow you to make your site login required.

1 个赞

If you want to disable it totally.

Eg with a msg like “The forum is temporary down due to maintenance”

As I need to move from server 1 (vultr) to server 2 (digitalocean)
and in that case also from url.tld to forum.url.tld

how do I do that?

1 个赞

I usually just put the old site in read only mode while making the transition to the new site.

3 个赞

这不起作用,可能是由于缓存?我使用的是 AWS 和 DigitalOcean。已登录的用户仍然可以浏览旧的 Discourse 实例。我可以强制所有人退出登录吗?

为什么不直接停止容器呢?

如果我通过 SSH 登录到 Droplet,进入 /var/discourse/ 目录,然后运行 ./launcher stop app,它会输出:

+ /usr/bin/docker stop -t 10 app
app

但我仍然可以在其他打开的网页浏览器中导航并与旧的 Discourse 实例进行交互。

您确定连接到了正确的服务器吗?

docker ps 的结果是什么?

1 个赞

您确定已连接到正确的服务器了吗?

是的,我在命令行提示符中看到了它的名称。

docker ps 的结果是什么?

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

这显示没有任何进程在运行。你确定你正在管理正确的服务器吗?

3 个赞

Discourse 会缓存大量内容,因此有时网站看似正常显示,但实际上已宕机。如果刷新后网站仍显示正常,说明你并未登录到正确的服务器。

1 个赞

我最终只好放弃,彻底将该子域名从公共服务中移除,谢谢。