From 90f388c6c6e8239037534227f6f705d47833d0ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 18 Feb 2025 05:58:36 +0200 Subject: [PATCH] nginx: redirect mis-opened http:8443 to https --- hosts/fwminex/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index 3b57c0c..cb700fc 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -358,6 +358,7 @@ in recommendedTlsSettings = true; virtualHosts."r1.jakstys.lt" = { extraConfig = '' + error_page 497 301 =307 https://$host:$server_port$request_uri; satisfy any; allow 127.0.0.1; allow ::1;