Move Nextcloud from subdomain to main domain name

This commit is contained in:
coolneng 2021-04-12 11:09:19 +02:00
parent 29a0a80594
commit a082dda03b
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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