From 7b74652bb6b2fe02590815356d2e37fb95e94a52 Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Fri, 16 Jul 2021 10:41:37 -0400
Subject: [PATCH] Accept both HTTP and HTTPS connection instead of only HTTPS

---
 nixos/modules/monitoring/server/grafana.nix | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/nixos/modules/monitoring/server/grafana.nix b/nixos/modules/monitoring/server/grafana.nix
index fffcde97..b5719f2d 100644
--- a/nixos/modules/monitoring/server/grafana.nix
+++ b/nixos/modules/monitoring/server/grafana.nix
@@ -112,7 +112,7 @@ in {
 
       virtualHosts.${config.services.grafana.domain} = {
         enableACME = true;
-        onlySSL = true;
+        forceSSL = true;
         locations."/" = {
           proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
           proxyWebsockets = true;
@@ -121,4 +121,3 @@ in {
     };
   };
 }
-
-- 
GitLab