mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
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:
parent
828363b21a
commit
97b22da1b6
1 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue