[PATCH] uhttpd: don't redirect to HTTPS by default
Paul Spooren
mail at aparcar.org
Mon Dec 14 14:35:20 EST 2020
On Mo, Dez 14, 2020 at 10:07, Petr Štetiar <ynezz at true.cz> wrote:
> So we can ship px5g-wolfssl by default in the release image, but still
> make the HTTPS for LuCI optional. This small change with addition of
> `CONFIG_PACKAGE_px5g-wolfssl=y` into the buildbot's seed config for
> the
> next release should provide optional HTTPS in the next release.
>
> Disabling the current default automatic uhttpd's redirect to HTTPS
> should make the HTTPS optional. That's it, user would either need to
> switch to HTTPS by manually switching to https:// protocol in the URL
> or
> by issuing the following commands to make the HTTPS automatic redirect
> permanent:
>
> $ uci set uhttpd.main.redirect_https=1
> $ uci commit uhttpd
> $ service uhttpd reload
>
> Signed-off-by: Petr Štetiar <ynezz at true.cz>
> ---
Acked-by: Paul Spooren <mail at aparcar.org>
> package/network/services/uhttpd/files/uhttpd.config | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/network/services/uhttpd/files/uhttpd.config
> b/package/network/services/uhttpd/files/uhttpd.config
> index aeded08afc95..40ce67fd010f 100644
> --- a/package/network/services/uhttpd/files/uhttpd.config
> +++ b/package/network/services/uhttpd/files/uhttpd.config
> @@ -10,7 +10,7 @@ config uhttpd main
> list listen_https [::]:443
>
> # Redirect HTTP requests to HTTPS if possible
> - option redirect_https 1
> + option redirect_https 0
>
> # Server document root
> option home /www
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list