Add maintenance mode setting checks

This commit is contained in:
Eric Schultz 2018-07-20 16:37:08 -05:00
parent 9c5d2df50b
commit f8b96856c8

View file

@ -268,6 +268,20 @@ Config.schema do
end
end
# the settings to get into maintenance_mode
optional(:maintenance).schema do
# true if you want to be in maintenance mode, otherwise false
required(:maintenance_mode).filled(:bool?)
# the token you pass into /users/sign_in to actually get to
# a signin page during maintenance mode
optional(:maintenance_token).filled(:str?)
# the url, absolute or relative, that visitors should be redirected to
optional(:maintenance_page).filled(:str?)
end
end
Settings.reload!