Comment mettre un forum hors ligne temporairement

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

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

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?

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?

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.

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?

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

Cela ne fonctionne pas, peut-être à cause de la mise en cache ? J’utilise AWS et DigitalOcean. Les utilisateurs connectés peuvent toujours naviguer sur l’ancienne instance Discourse. Puis-je forcer la déconnexion de tout le monde ?

Pourquoi ne pas arrêter le conteneur

Si je me connecte en SSH au droplet, que je me rends dans /var/discourse/ et que j’exécute ./launcher stop app, la commande affiche :

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

Pourtant, je peux toujours naviguer et interagir avec l’ancienne instance Discourse dans mon autre navigateur web ouvert.

Êtes-vous sûr d’être connecté au bon serveur ?

Quel est le résultat de docker ps ?

Êtes-vous sûr d’être connecté au bon serveur ?

Oui, je le vois affiché dans l’invite de ligne de commande.

Quel est le résultat de docker ps ?

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

Cela indique que rien n’est en cours d’exécution. Êtes-vous sûr de gérer le bon serveur ?

Discourse met en cache un certain nombre d’éléments, si bien qu’un site peut parfois sembler affiché alors qu’il est hors ligne. Si le site s’affiche toujours après un rechargement forcé, c’est que vous n’êtes pas connecté au bon serveur.

Finalement, j’ai simplement abandonné et retiré le sous-domaine du service public, merci.