setup microbin

This commit is contained in:
♥ Minnie ♥ 2024-05-09 11:40:42 +08:00
parent b40f61c25b
commit 65fd1c26f3
5 changed files with 44 additions and 0 deletions

View file

@ -13,6 +13,8 @@
./radarr.nix
./recyclarr.nix
./sonarr.nix
./microbin
];
virtualisation.oci-containers.backend = "docker";
}

View file

@ -0,0 +1,28 @@
{ config, ... }:
{
age.secrets.microbin = {
# Environment variables for microbin
rekeyFile = ./environment.age;
owner = "root";
group = "root";
};
virtualisation.oci-containers.containers = {
# Self-hosted, open-source pastbin
microbin = {
autoStart = true;
image = "danielszabo99/microbin:2.0";
ports = [
"8181:8080/tcp" # WebUI
];
volumes = [
# Container data
"/srv/containers/microbin:/app/microbin_data:rw"
];
environmentFiles = [
config.age.secrets.microbin.path
];
};
};
}

Binary file not shown.

View file

@ -122,6 +122,17 @@
];
service = "jellyseerr";
};
microbin = {
rule = "Host(`bin.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"internal"
];
service = "microbin";
};
};
}

View file

@ -32,6 +32,9 @@
jellyseerr.loadBalancer.servers = [
{ url = "http://192.168.1.102:5055"; }
];
microbin.loadBalancer.servers = [
{ url = "http://192.168.1.102:8181"; }
];
};
}