From da2c1c9797fb28ee6f0c895aaeaee94c236b9dd1 Mon Sep 17 00:00:00 2001 From: Random936 Date: Sat, 30 Nov 2024 22:04:37 -0800 Subject: [PATCH] Added landing page to nginx config - media --- config/media.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/media.nix b/config/media.nix index 633ea20..2bb199f 100644 --- a/config/media.nix +++ b/config/media.nix @@ -102,11 +102,21 @@ services.nginx = { enable = true; virtualHosts = { + + # Landing Page (randomctf.com) + "randomctf.com" = { + enableACME = true; + forceSSL = true; + root = "/var/www/randomctf.com"; + }; + + # Nextcloud ${config.services.nextcloud.hostName} = { enableACME = true; forceSSL = true; }; + # Gitea "git.randomctf.com" = { enableACME = true; forceSSL = true; @@ -126,6 +136,7 @@ security.acme = { acceptTerms = true; certs = { + "randomctf.com".email = "admin@randomctf.com"; ${config.services.nextcloud.hostName}.email = "admin@randomctf.com"; ${config.services.gitea.settings.server.DOMAIN}.email = "admin@randomctf.com"; };