add cobblemonsurvival
This commit is contained in:
parent
f3ee86c23b
commit
7629275e1b
1 changed files with 24 additions and 0 deletions
24
modules/nixos/sites/map/default.nix
Normal file
24
modules/nixos/sites/map/default.nix
Normal 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";
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue