add test foundry instance
This commit is contained in:
parent
62549875c4
commit
40fd4b653d
1 changed files with 19 additions and 1 deletions
|
@ -23,7 +23,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"foundryvtt1.peninsula.industries" = {
|
"foundryvtt-test.peninsula.industries" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
@ -58,4 +58,22 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
containers.foundryvtt-test = {
|
||||||
|
autoStart = true;
|
||||||
|
forwardPorts = [{
|
||||||
|
containerPort = 30001;
|
||||||
|
hostPort = 30001;
|
||||||
|
}];
|
||||||
|
config = { config, pkgs, ... }: {
|
||||||
|
systemd.services."foundryvtt" = {
|
||||||
|
requires = [ "network-online.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
script = ''
|
||||||
|
mkdir -p /var/lib/foundryvtt
|
||||||
|
${pkgs.nodejs-18_x}/bin/node ${foundryvtt}/resources/app/main.js --dataPath=/var/lib/foundryvtt --port=30001
|
||||||
|
'';
|
||||||
|
serviceConfig.Restart = "always";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue