Setup foundry on driftwood
This commit is contained in:
parent
a314900121
commit
da6c97fc24
2 changed files with 27 additions and 0 deletions
26
nixos/machines/driftwood/containers/vtt.nix
Normal file
26
nixos/machines/driftwood/containers/vtt.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
virtualisation.oci-containers.containers.vtt = {
|
||||
image = "felddy/foundryvtt:13";
|
||||
volumes = [
|
||||
"/var/containers/vtt:/data"
|
||||
];
|
||||
ports = [
|
||||
"30000:30000"
|
||||
];
|
||||
environmentFiles = [
|
||||
"/var/containers/vtt.env"
|
||||
];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."vtt.stranger.systems" = {
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:30000";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue