From a4acaac229c32ad970eb5ea562451275dd545aca Mon Sep 17 00:00:00 2001 From: joy Date: Sun, 3 Nov 2024 12:33:02 +0100 Subject: [PATCH] www.joygnu.org --- hosts/server/default.nix | 1 + modules/services/nginx/default.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 modules/services/nginx/default.nix diff --git a/hosts/server/default.nix b/hosts/server/default.nix index adc6ab8..3ccab9e 100644 --- a/hosts/server/default.nix +++ b/hosts/server/default.nix @@ -14,5 +14,6 @@ ../../modules/services/forgejo ../../modules/services/syncthing ../../modules/services/immich + ../../modules/services/nginx ]; } diff --git a/modules/services/nginx/default.nix b/modules/services/nginx/default.nix new file mode 100644 index 0000000..79c5a1e --- /dev/null +++ b/modules/services/nginx/default.nix @@ -0,0 +1,12 @@ +{ + services.nginx = { + virtualHosts."www.joygnu.org" = { + forceSSL = true; + enableACME = true; + root = "/var/www/www.joygnu.org"; + }; + }; + security.acme.certs = { + "www.joygnu.org".email = "contact@joygnu.org"; + }; +}