nextcloud: add network to container
this appears to break nix in a way in which nix should not be possible to break.
This commit is contained in:
parent
2e9dc554df
commit
a04a3c917f
1 changed files with 20 additions and 5 deletions
|
@ -19,8 +19,8 @@
|
|||
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress6 = "fd00::10:1";
|
||||
localAddress6 = "fd00::10:2";
|
||||
hostAddress = "192.168.110.1";
|
||||
localAddress = "192.168.110.10";
|
||||
|
||||
config = { pkgs, ... }: {
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
|||
# there's also a adminpassFile option, but for testing this seems
|
||||
# enough (less fiddling with getting the file into a nixos
|
||||
# container for ad-hoc setups)
|
||||
adminpass = "root";
|
||||
adminpass = "lushfjwebrwhjebr";
|
||||
adminuser = "root";
|
||||
};
|
||||
|
||||
|
@ -113,13 +113,28 @@
|
|||
after = ["postgresql.service"];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
networking.firewall.enable = false;
|
||||
|
||||
services.coredns = {
|
||||
enable = true;
|
||||
config = ''
|
||||
.:53 {
|
||||
forward . 1.1.1.1
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."cloud2.infra4future.de" = {
|
||||
locations."/".proxyPass = "http://[${config.containers.nextcloud.localAddress6}]:80";
|
||||
locations."/".proxyPass = "http://${config.containers.nextcloud.localAddress}:80";
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
|
||||
|
||||
networking.nat.enable = true;
|
||||
networking.nat.internalInterfaces = ["ve-nextcloud"];
|
||||
networking.nat.externalInterface = "enp6s0";
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue