Set up PiGallery2

This commit is contained in:
2025-12-23 14:19:27 +01:00
parent 7608249b0b
commit c7eefea616
2 changed files with 20 additions and 0 deletions

View File

@@ -44,6 +44,21 @@
ports = [ "127.0.0.1:9090:8080" ]; ports = [ "127.0.0.1:9090:8080" ];
volumes = [ "/vault/opodsync:/var/www/server/data" ]; volumes = [ "/vault/opodsync:/var/www/server/data" ];
}; };
# Photo gallery
pigallery2 = {
image = "bpatrik/pigallery2@sha256:c936e4504cfe7158198542a8db794b24afb0301155d89e911f13bd04e0b406c2";
ports = [ "127.0.0.1:9191:80" ];
volumes = [
"/vault/pigallery2/config:/app/data/config"
"/vault/pigallery2/db:/app/data/db"
"/vault/pigallery2/tmp:/app/data/tmp"
"/vault/syncthing/Photos:/app/data/images"
];
cmd = [
"-e"
"NODE_ENV=production"
];
};
}; };
}; };
}; };

View File

@@ -169,6 +169,11 @@
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://localhost:9092/"; locations."/".proxyPass = "http://localhost:9092/";
}; };
"photos.psydnd.org" = {
useACMEHost = "psydnd.org";
forceSSL = true;
locations."/".proxyPass = "http://localhost:9191/";
};
}; };
}; };