From 20b9590e645956b3a82e9d6075be6772e280209d Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 18 Jan 2024 18:55:43 -0800 Subject: [PATCH] Add external network, to access auth --- mastodon-container.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mastodon-container.nix b/mastodon-container.nix index 166d6f2..fea4e83 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -86,6 +86,7 @@ in { redis-data = { }; mastodon-data = { }; }; + networks.external_network.internal = false; services = { mastodon = { pkgs, ... }: { service = { @@ -97,6 +98,7 @@ in { ] ++ (map (env-file: "${env-file}:${env-file}:ro,Z") cfg.environment-files); ports = [ "${toString cfg.port}:80" ]; + networks = [ "external_network" ]; }; nixos = { useSystemd = true;