nextcloud: redirect owncloud correctly
This commit is contained in:
parent
1376335e8a
commit
d93d573e1c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue