From 7629275e1b192eb779ae7020275455597fad6584 Mon Sep 17 00:00:00 2001 From: zackartz Date: Thu, 6 Jun 2024 00:20:51 -0400 Subject: [PATCH] add cobblemonsurvival --- modules/nixos/sites/map/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/nixos/sites/map/default.nix diff --git a/modules/nixos/sites/map/default.nix b/modules/nixos/sites/map/default.nix new file mode 100644 index 0000000..a28456f --- /dev/null +++ b/modules/nixos/sites/map/default.nix @@ -0,0 +1,24 @@ +{ + lib, + config, + pkgs, + ... +}: +with lib; +with lib.custom; let + cfg = config.sites.map; +in { + options.sites.map = with types; { + enable = mkBoolOpt false "Enable BlueMap for Alfie"; + }; + + config = mkIf cfg.enable { + services.nginx.virtualHosts."cobblemonsurvival.zackmyers.io" = { + forceSSL = true; + enableACME = true; + locations."/".extraConfig = '' + proxyPass = "http://localhost:8100"; + ''; + }; + }; +}