Use the Request Termination plugin to return a custom response on a specific Route or Service. To apply the maintenance page to all Services, enable the plugin globally.
Set the following plugin configuration fields:
-
config.body: the message or HTML to return to the user. -
config.content_type: the content type of the response, for exampletext/htmlto return an HTML page.
For example, to return an HTML maintenance page:
config.body:
<h1 style="color:Gray;background-color:DodgerBlue;">This page is under maintenance. It will be completed by 3pm PST. Here is a turtle to look at to pass the time.</h1> <img src="https://upload.wikimedia.org/wikipedia/commons/f/f4/Florida_Box_Turtle_Digon3_re-edited.jpg">