add cobblemonsurvival

This commit is contained in:
zackartz 2024-06-06 00:20:51 -04:00
parent f3ee86c23b
commit 7629275e1b
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA

View file

@ -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";
'';
};
};
}