From a082dda03b9eba14cf27ae4ef63bc05d270f87f5 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 12 Apr 2021 11:09:19 +0200 Subject: [PATCH] Move Nextcloud from subdomain to main domain name --- modules/datasync.nix | 2 +- modules/webstack.nix | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/datasync.nix b/modules/datasync.nix index 736943a..a3696c8 100644 --- a/modules/datasync.nix +++ b/modules/datasync.nix @@ -52,7 +52,7 @@ enable = true; package = pkgs.nextcloud21; home = "/vault/nextcloud"; - hostName = "nextcloud.coace.duckdns.org"; + hostName = "coace.duckdns.org"; https = true; autoUpdateApps = { enable = true; diff --git a/modules/webstack.nix b/modules/webstack.nix index 1c81def..b50caaf 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -37,7 +37,7 @@ proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict"; ''; virtualHosts = { - "nextcloud.coace.duckdns.org" = { + "coace.duckdns.org" = { enableACME = true; forceSSL = true; }; @@ -48,8 +48,7 @@ security.acme = { acceptTerms = true; email = "secretario@arquitectosdeceuta.com"; - certs."nextcloud.coace.duckdns.org".webroot = - "/var/lib/acme/acme-challenge"; + certs."coace.duckdns.org".webroot = "/var/lib/acme/acme-challenge"; }; # Generate dhparams