aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2024-12-27 19:48:25 -0500
committertdback <tyler@tdback.net>2024-12-27 19:48:25 -0500
commit43e411eed4885c567532c5ca75b880ec6dad71a2 (patch)
treecc93ec2b74f626d78f8fac8b3c4490e8c218effe
parent836ec67a008ce16c57ea5071ef901154f7e93ea9 (diff)
eden: add lubelogger container
-rw-r--r--flake.nix2
-rw-r--r--modules/containers/lubelogger/default.nix35
2 files changed, 36 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 2d0950d..9040957 100644
--- a/flake.nix
+++ b/flake.nix
@@ -64,7 +64,7 @@
(mkSystem "eden" inputs.nixpkgs [
{
type = "containers";
- modules = [ "freshrss" "jellyfin" "pinchflat" "vaultwarden" "watchtower" ];
+ modules = [ "freshrss" "jellyfin" "lubelogger" "pinchflat" "vaultwarden" "watchtower" ];
}
{
type = "profiles";
diff --git a/modules/containers/lubelogger/default.nix b/modules/containers/lubelogger/default.nix
new file mode 100644
index 0000000..eb3f58f
--- /dev/null
+++ b/modules/containers/lubelogger/default.nix
@@ -0,0 +1,35 @@
+{ lib, ... }:
+let
+ directory = "/opt/lubelogger";
+ port = "8889";
+in
+{
+ systemd.tmpfiles.rules =
+ builtins.map (x: "d ${x} 0755 share share - -") (lib.lists.singleton directory);
+
+ virtualisation.oci-containers.containers.lubelogger = {
+ image = "ghcr.io/hargata/lubelogger:latest";
+ autoStart = true;
+ ports = [ "${port}:8080" ];
+ volumes = [
+ "${directory}/config:/App/config"
+ "${directory}/data:/App/data"
+ "${directory}/translations:/App/wwwroot/translations"
+ "${directory}/documents:/App/wwwroot/documents"
+ "${directory}/images:/App/wwwroot/images"
+ "${directory}/temp:/App/wwwroot/temp"
+ "${directory}/log:/App/log"
+ "${directory}/keys:/root/.aspnet/DataProtection-Keys"
+ ];
+ environment = {
+ LC_ALL = "en_US.UTF-8";
+ LANG = "en_US.UTF-8";
+ LUBELOGGER_ALLOWED_FILE_EXTENSIONS = "*";
+ };
+ };
+
+ services.caddy.virtualHosts."garage.brownbread.net".extraConfig = ''
+ encode zstd gzip
+ reverse_proxy http://localhost:${port}
+ '';
+}