Add external network, to access auth

This commit is contained in:
niten 2024-01-18 18:55:43 -08:00
parent 9045029d31
commit 20b9590e64
1 changed files with 2 additions and 0 deletions

View File

@ -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;