Add example nginx config

This commit is contained in:
exogit 2022-07-25 19:12:22 -05:00
parent ecfe38a98f
commit 1c1c34512a

View file

@ -109,6 +109,19 @@
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
services.nginx = {
enable = true;
virtualHosts."localhost" = {
root = "${pkgs.nginx}/html";
listen = [
{
addr = "0.0.0.0";
port = 1234;
}
];
};
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave