mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
45
server-modules/hoarder.nix
Normal file
45
server-modules/hoarder.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ config, ... }:
|
||||
let domain = "hoarder.hadi.diy";
|
||||
in {
|
||||
virtualisation.oci-containers.containers = {
|
||||
hoarder-web = {
|
||||
environmentFiles = [ config.sops.secrets.hoarder.path ];
|
||||
image = "ghcr.io/hoarder-app/hoarder:release";
|
||||
volumes = [ "/mnt/media/data/hoarder-web:/data" ];
|
||||
ports = [ "127.0.0.1:3131:3000" ];
|
||||
environment = {
|
||||
HOARDER_VERSION = "release";
|
||||
NEXTAUTH_URL = "https://" + domain;
|
||||
DATA_DIR = "/data";
|
||||
MEILI_ADDR = "http://hoarder-meili:7700";
|
||||
BROWSER_WEB_URL = "http://hoarder-browser:9222";
|
||||
DISABLE_SIGNUPS = "true";
|
||||
};
|
||||
};
|
||||
|
||||
hoarder-meili = {
|
||||
environmentFiles = [ config.sops.secrets.hoarder.path ];
|
||||
image = "getmeili/meilisearch:v1.11.1";
|
||||
environment = { MEILI_NO_ANALYTICS = "true"; };
|
||||
volumes = [ "/mnt/media/data/hoarder-meili:/meili_data" ];
|
||||
};
|
||||
|
||||
hoarder-browser = {
|
||||
image = "gcr.io/zenika-hub/alpine-chrome:123";
|
||||
#pull = "newer";
|
||||
cmd = [
|
||||
"--no-sandbox"
|
||||
"--disable-gpu"
|
||||
"--disable-dev-shm-usage"
|
||||
"--remote-debugging-address=0.0.0.0"
|
||||
"--remote-debugging-port=9222"
|
||||
"--hide-scrollbars"
|
||||
];
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts."${domain}" = {
|
||||
useACMEHost = "hadi.diy";
|
||||
forceSSL = true;
|
||||
locations."/" = { proxyPass = "http://127.0.0.1:3131"; };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user