Move Nextcloud from subdomain to main domain name
This commit is contained in:
parent
29a0a80594
commit
a082dda03b
|
@ -52,7 +52,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud21;
|
package = pkgs.nextcloud21;
|
||||||
home = "/vault/nextcloud";
|
home = "/vault/nextcloud";
|
||||||
hostName = "nextcloud.coace.duckdns.org";
|
hostName = "coace.duckdns.org";
|
||||||
https = true;
|
https = true;
|
||||||
autoUpdateApps = {
|
autoUpdateApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
|
proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
|
||||||
'';
|
'';
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"nextcloud.coace.duckdns.org" = {
|
"coace.duckdns.org" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
};
|
};
|
||||||
|
@ -48,8 +48,7 @@
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
email = "secretario@arquitectosdeceuta.com";
|
email = "secretario@arquitectosdeceuta.com";
|
||||||
certs."nextcloud.coace.duckdns.org".webroot =
|
certs."coace.duckdns.org".webroot = "/var/lib/acme/acme-challenge";
|
||||||
"/var/lib/acme/acme-challenge";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Generate dhparams
|
# Generate dhparams
|
||||||
|
|
Loading…
Reference in New Issue