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
28
29
|
{
jolheiser,
inputs,
pkgs,
lib,
...
}:
let
enable = true;
port = 30000;
host = "dnd.${jolheiser.domain}";
in
lib.mkIf enable {
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}
'';
};
}
|