nextcloud: deprecate oc.ifsr.de
This commit is contained in:
parent
e198002d60
commit
2e5f4fbe23
|
@ -1,7 +1,6 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
domain = "nc.${config.networking.domain}";
|
domain = "nc.${config.networking.domain}";
|
||||||
legacy_domain = "oc.${config.networking.domain}";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
|
@ -52,11 +51,6 @@ in
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
};
|
};
|
||||||
nginx.virtualHosts.${legacy_domain} = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/".return = "301 https://nc.ifsr.de";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# ensure that postgres is running *before* running the setup
|
# ensure that postgres is running *before* running the setup
|
||||||
|
|
Loading…
Reference in a new issue