Add example maintenance message for Gerrit server

Include comments in the Gerrit vhost config template to make setting
a temporary site-wide maintenance message easier.

Change-Id: I81f69185e081b2a6506d5355bb07a90cb3e03fea
This commit is contained in:
Jeremy Stanley 2020-11-13 20:00:53 +00:00
parent c16501af8a
commit 0f3ef01027

View File

@ -55,11 +55,18 @@
ProxyPreserveHost on
ProxyStatus On
# Uncomment to show a temporary maintenance message
#ProxyPassMatch ^/maintenance.html$ !
#Alias /maintenance.html /home/gerrit2/review_site/static/maintenance.html
#RewriteCond %{REQUEST_URI} !^/maintenance.html$
#RewriteRule ^/(.*) /maintenance.html [last,redirect=temporary]
# TODO remove this when upgrading to Gerrit 2.16. /p/ is used
# for project dashboards.
ProxyPassMatch ^/p/ !
ProxyPassMatch ^/robots.txt$ !
ProxyPassMatch ^/server-status !
# Comment out these two lines if the maintenance message above is in use
ProxyPass / http://localhost:8081/ nocanon
ProxyPassReverse / http://localhost:8081/