From 1c1c34512a4700154af50549ddd7fb7b72a27b57 Mon Sep 17 00:00:00 2001 From: exogit Date: Mon, 25 Jul 2022 19:12:22 -0500 Subject: [PATCH] Add example nginx config --- configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configuration.nix b/configuration.nix index d58cda7..b21922d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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. It‘s perfectly fine and recommended to leave