Skip to content

Instantly share code, notes, and snippets.

@Moredread
Last active December 24, 2017 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Moredread/825e011831241e442d006a12f089400f to your computer and use it in GitHub Desktop.
Save Moredread/825e011831241e442d006a12f089400f to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
containers.webserver =
{ privateNetwork = true;
hostAddress = "192.168.101.1";
localAddress = "192.168.101.2";
autoStart = true;
forwardPorts = [ { protocol = "tcp"; hostPort = 80; containerPort = 80; } ];
config =
{ services.httpd.enable = true;
services.httpd.adminAddr = "foo@example.org";
networking.firewall.allowedTCPPorts = [ 80 ];
networking.firewall.allowPing = true;
};
};
networking.firewall.allowedTCPPorts = [ 80 ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment