config/modules/nixos/sites/map/default.nix

25 lines
435 B
Nix
Raw Normal View History

2024-06-06 00:20:51 -04:00
{
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;
2024-06-06 12:22:31 -04:00
locations."/" = {
2024-06-06 00:20:51 -04:00
proxyPass = "http://localhost:8100";
2024-06-06 12:22:31 -04:00
};
2024-06-06 00:20:51 -04:00
};
};
}