update foundry

This commit is contained in:
Cyryl Płotnicki 2023-01-27 21:11:15 +00:00
parent 265563968f
commit a39fd43b74
3 changed files with 6 additions and 41 deletions

View file

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dfe67763205be1c07993d17cb793c81aac0eb315c76e70b579334f8dd819a479
size 200331927

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ef7c2082f92ad57ade92cf08b28a3323141bb5453f342e27baa227a31963d49
size 200873934

View file

@ -7,9 +7,9 @@
}: let }: let
foundryvtt = pkgs.fetchzip { foundryvtt = pkgs.fetchzip {
name = "foundryvtt"; name = "foundryvtt";
url = "file:///" + ./FoundryVTT-10.290.zip; url = "file:///" + ./FoundryVTT-10.291.zip;
postFetch = ""; postFetch = "";
sha256 = "sha256-G4GK76MgDnHsg9dC9Urrww9guJCUTgvMeNzGQ6ez+AQ="; sha256 = "sha256-DqRKu99xCjzrYalpICD7b0Kf3sqtXaxbL1G2sEgfFDc=";
stripRoot = false; stripRoot = false;
}; };
in { in {
@ -27,16 +27,6 @@ in {
}; };
}; };
}; };
virtualHosts = {
"foundryvtt-test.peninsula.industries" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:30001";
proxyWebsockets = true;
};
};
};
}; };
containers.foundryvtt = { containers.foundryvtt = {
@ -58,7 +48,7 @@ in {
pkgs, pkgs,
... ...
}: { }: {
system.stateVersion = "22.05"; system.stateVersion = "22.11";
systemd.services."foundryvtt" = { systemd.services."foundryvtt" = {
requires = ["network-online.target"]; requires = ["network-online.target"];
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
@ -70,29 +60,4 @@ in {
}; };
}; };
}; };
containers.foundryvtt-test = {
autoStart = true;
forwardPorts = [
{
containerPort = 30001;
hostPort = 30001;
}
];
config = {
config,
pkgs,
...
}: {
system.stateVersion = "22.05";
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";
};
};
};
} }