nextcloud: add nat to container

This commit is contained in:
Ingolf Wagner 2020-03-04 06:20:34 +08:00
parent d66e28d96c
commit 006ca4b249
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -1,5 +1,6 @@
{ pkgs, ... }: {
# setup nextcloud in a container
containers.nextcloud = {
bindMounts = {
@ -44,6 +45,14 @@
};
};
# give containers internet access
networking.nat.enable = true;
networking.nat.internalInterfaces = [ "ve-nextcloud" ];
networking.nat.externalInterface = "eth0";
# don't let networkmanager manger container network
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
# host nginx setup
services.nginx = {
enable = true;