Add external network, to access auth
This commit is contained in:
parent
9045029d31
commit
20b9590e64
|
@ -86,6 +86,7 @@ in {
|
||||||
redis-data = { };
|
redis-data = { };
|
||||||
mastodon-data = { };
|
mastodon-data = { };
|
||||||
};
|
};
|
||||||
|
networks.external_network.internal = false;
|
||||||
services = {
|
services = {
|
||||||
mastodon = { pkgs, ... }: {
|
mastodon = { pkgs, ... }: {
|
||||||
service = {
|
service = {
|
||||||
|
@ -97,6 +98,7 @@ in {
|
||||||
] ++ (map (env-file: "${env-file}:${env-file}:ro,Z")
|
] ++ (map (env-file: "${env-file}:${env-file}:ro,Z")
|
||||||
cfg.environment-files);
|
cfg.environment-files);
|
||||||
ports = [ "${toString cfg.port}:80" ];
|
ports = [ "${toString cfg.port}:80" ];
|
||||||
|
networks = [ "external_network" ];
|
||||||
};
|
};
|
||||||
nixos = {
|
nixos = {
|
||||||
useSystemd = true;
|
useSystemd = true;
|
||||||
|
|
Loading…
Reference in New Issue