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"; + }; +}