https://git.jolheiser.com/infra.git
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
{ jolheiser, inputs, pkgs, ... }: let port = 30000; host = "dnd.${jolheiser.domain}"; in { services = { foundryvtt = { enable = true; inherit port; hostName = host; minifyStaticFiles = true; proxyPort = 443; proxySSL = true; upnp = false; package = inputs.foundry.packages.${pkgs.stdenv.hostPlatform.system}.foundryvtt_14; }; caddy.virtualHosts."${host}".extraConfig = '' reverse_proxy localhost:${builtins.toString port} ''; }; }