From 8c3ad684cd510c3ad8636e1b7295cc3c1ade7651 Mon Sep 17 00:00:00 2001 From: "Gustavo L de Mello (Guz)" Date: Fri, 4 Apr 2025 20:13:16 -0300 Subject: [PATCH] feat: medama definition --- modules/default.nix | 1 + modules/medama.nix | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/default.nix b/modules/default.nix index 2316846..a2ce80a 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -4,6 +4,7 @@ ./anubis ./forgejo ./locales.nix + ./medama.nix ./nh ./tailscale.nix ./xcaddy diff --git a/modules/medama.nix b/modules/medama.nix index 690ceaa..85afb79 100644 --- a/modules/medama.nix +++ b/modules/medama.nix @@ -19,15 +19,13 @@ in { virtualisation.oci-containers.containers.medama = { image = "ghcr.io/medama-io/medama:v0.5.2"; autoStart = true; - ports = [ - "${cfg.port}:8080" - ]; + extraOptions = ["--network=host"]; volumes = [ "/var/lib/medama/data:/app/data" ]; environment = { AUTO_SLL = toString cfg.ssl; - PORT = toString 8080; + PORT = toString cfg.port; }; }; };