Replace the easy v. secure prompt with more clear choices (#4897)

* Replace the easy v. secure prompt with more clear choices
This commit is contained in:
ohemorange 2017-06-30 17:12:09 -07:00 committed by GitHub
parent 828363b21a
commit 97b22da1b6

View file

@ -42,12 +42,14 @@ def redirect_by_default():
"""
choices = [
("Easy", "Allow both HTTP and HTTPS access to these sites"),
("Secure", "Make all requests redirect to secure HTTPS access"),
("No redirect", "Make no further changes to the webserver configuration."),
("Redirect", "Make all requests redirect to secure HTTPS access. "
"Choose this for new sites, or if you're confident your site works on HTTPS. "
"You can undo this change by editing your web server's configuration."),
]
code, selection = util(interfaces.IDisplay).menu(
"Please choose whether HTTPS access is required or optional.",
"Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.",
choices, default=0,
cli_flag="--redirect / --no-redirect", force_interactive=True)