nginx: redirect mis-opened http:8443 to https

This commit is contained in:
2025-02-18 05:58:36 +02:00
parent 475fca266b
commit 90f388c6c6

View File

@@ -358,6 +358,7 @@ in
recommendedTlsSettings = true; recommendedTlsSettings = true;
virtualHosts."r1.jakstys.lt" = { virtualHosts."r1.jakstys.lt" = {
extraConfig = '' extraConfig = ''
error_page 497 301 =307 https://$host:$server_port$request_uri;
satisfy any; satisfy any;
allow 127.0.0.1; allow 127.0.0.1;
allow ::1; allow ::1;