nextcloud: redirect owncloud correctly

This commit is contained in:
Serĉanto de Scio 2024-02-28 00:10:45 +10:00
parent 1376335e8a
commit d93d573e1c
Signed by: sercanto
GPG key ID: A4122FF3971B6865

View file

@ -78,7 +78,8 @@
forceSSL = true; # Force SSL
};
virtualHosts."owncloud.mcwhirter.io" = {
# Hostname to be redirected
enableACME = true;
forceSSL = true;
globalRedirect = "cloud.mcwhirter.io"; # Redirect permanently to the host
};
};
@ -91,7 +92,10 @@
security.acme = {
acceptTerms = true;
certs = {"cloud.mcwhirter.io" = {email = "craige@mcwhirter.io";};};
certs = {
"cloud.mcwhirter.io" = {email = "craige@mcwhirter.io";};
"owncloud.mcwhirter.io" = {email = "craige@mcwhirter.io";};
};
};
users.groups.keys.members = ["nextcloud"]; # Required due to NixOps issue #1204