diff --git a/nixos/nginx.nix b/nixos/nginx.nix index 4d72e97..0d36868 100644 --- a/nixos/nginx.nix +++ b/nixos/nginx.nix @@ -20,6 +20,20 @@ ''; }; + "fbksdigital.com" = { + enableACME = true; # Enable Let's Encrypt certificate for HTTPS + forceSSL = false; # Redirect HTTP to HTTPS? + addSSL = true; + + root = "/dev/null"; + + locations."/" = { + extraConfig = '' + return 301 http://fbksdigital.lpages.co/fbksdigital/; + ''; + }; + + }; "philippeterson.com" = { enableACME = true; # Enable Let's Encrypt certificate for HTTPS forceSSL = false; # Redirect HTTP to HTTPS?