mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
Implement redirect by default (#7595)
* Change redirect default to yes so that it happens automatically in noninteractive mode * Update changelog
This commit is contained in:
@@ -28,6 +28,9 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
|
|||||||
`certbot.reverter.Reverter.view_config_changes`, and
|
`certbot.reverter.Reverter.view_config_changes`, and
|
||||||
`certbot.util.get_systemd_os_info` have been removed
|
`certbot.util.get_systemd_os_info` have been removed
|
||||||
* Certbot's `register --update-registration` subcommand has been removed
|
* Certbot's `register --update-registration` subcommand has been removed
|
||||||
|
* When possible, default to automatically configuring the webserver so all requests
|
||||||
|
redirect to secure HTTPS access. This is mostly relevant when running Certbot
|
||||||
|
in non-interactive mode. Previously, the default was to not redirect all requests.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ def redirect_by_default():
|
|||||||
|
|
||||||
code, selection = util(interfaces.IDisplay).menu(
|
code, selection = util(interfaces.IDisplay).menu(
|
||||||
"Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.",
|
"Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.",
|
||||||
choices, default=0,
|
choices, default=1,
|
||||||
cli_flag="--redirect / --no-redirect", force_interactive=True)
|
cli_flag="--redirect / --no-redirect", force_interactive=True)
|
||||||
|
|
||||||
if code != display_util.OK:
|
if code != display_util.OK:
|
||||||
|
|||||||
Reference in New Issue
Block a user