-
Maintenance Mode
When the file
/usr/share/nginx/html/maintenance-modeexists Nginx will return the content of/usr/share/nginx/html/maintenance.htmltogether with the status code503(service temporarily unavailable).The maintenance mode can be enabled through the following HTTP request:
curl -XPUT -u czerasz:password1234567890 localhost/maintenance-mode -d ''The maintenance mode can be disabled with the following HTTP request:
curl -XDELETE -u czerasz:password1234567890 localhost/maintenance-mode
To test the configuration run the following helper script:
./bin/test.sh
This script is runs test based on bats inside the container.
-
reload Nginx
kill -HUP `cat /var/run/nginx.pid` -
generate the
/etc/nginx/htpasswdfile with base auth credentialshtpasswd -cb /etc/nginx/htpasswd 'czerasz' 'password1234567890'