Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Bearbeiten der Konfigurationsdatei auf dem Auf treff.darc.de im nginx. Set $maintenance default = on;:

Code Block
languagebash
themeDJango
firstline1
title /etc/nginx/sites-available/treff.conf
# set default to 'on' for maintenance mode
map $remote_addr $maintenance {
    default         on; ### Set to on
    127.0.0.1       off;
    87.154.222.73   off;
}

server {
    listen 443 ssl http2;
[...]
root@treff:~# /usr/local/sbin/set_maintenance_mode.sh -a on

Und später

Code Block
root@treff:~# /usr/local/sbin/set_maintenance_mode.sh -a off

Dadurch wird eine neue index.html geladenngnix reload erforderlich.