From 1de3ef1060e851264697b735cac6cfdb3705d5d0 Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Fri, 7 Jul 2023 08:22:46 +0100 Subject: [PATCH] Add nginx to kernighan --- system/kernighan/kernighan.nix | 5 +++-- system/kernighan/services/nginx.nix | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 system/kernighan/services/nginx.nix diff --git a/system/kernighan/kernighan.nix b/system/kernighan/kernighan.nix index f90d73c..3d09c6d 100644 --- a/system/kernighan/kernighan.nix +++ b/system/kernighan/kernighan.nix @@ -4,8 +4,9 @@ { imports = [ - ../shared-configuration.nix - ./hardware.nix + ../shared/shared-configuration.nix + ./kernighan-hardware.nix + ./services/nginx.nix ]; networking = { diff --git a/system/kernighan/services/nginx.nix b/system/kernighan/services/nginx.nix new file mode 100644 index 0000000..8c8aeb6 --- /dev/null +++ b/system/kernighan/services/nginx.nix @@ -0,0 +1,19 @@ +{ config, pkgs, inputs, ... }: + +{ + services.nginx = { + enable = true; + virtualHosts."test.tsvallender.co.uk" = { + #forceSSL = true; + #enableACME = true; + root = "/var/www/tsvallender.co.uk"; + }; + }; + # security.acme = { + # acceptTerms = true; + # defaults = { + # email = "t+acme@tsvallender.co.uk"; + # }; + # }; +} +