mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-12 11:14:07 +02:00
fix main domain redirect
This commit is contained in:
parent
d32f870dda
commit
b65be63b70
|
@ -16,6 +16,5 @@
|
||||||
./website.nix
|
./website.nix
|
||||||
./trekkie.nix
|
./trekkie.nix
|
||||||
./chemo.nix
|
./chemo.nix
|
||||||
./landingpage.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
{ pkgs, config, ... }: {
|
|
||||||
services = {
|
|
||||||
nginx = {
|
|
||||||
enable = true;
|
|
||||||
recommendedProxySettings = true;
|
|
||||||
virtualHosts = {
|
|
||||||
"${(builtins.replaceStrings [ "tlm.solutions" ] [ "dvb.solutions" ] config.deployment-TLMS.domain)}" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
extraConfig = ''
|
|
||||||
rewrite ^ https://kid.${config.deployment-TLMS.domain}/en/map/ redirect;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -13,10 +13,9 @@
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
rewrite https://kid.${config.deployment-TLMS.domain}/ permanent;
|
return 302 $scheme://kid.${config.deployment-TLMS.domain};
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user