Redirect jimfiles and nixfox to www

This commit is contained in:
Jimbo 2025-01-17 19:55:34 -05:00
parent cc68f883ba
commit b0247d330e
2 changed files with 12 additions and 4 deletions

View file

@ -3,6 +3,7 @@
services.nginx.virtualHosts."${config.domains.p1}" = lib.mkIf config.system.server.enable {
enableACME = true;
addSSL = true;
globalRedirect = "www.${config.domains.p2}";
locations = {
"/.well-known/matrix/client".extraConfig = ''
default_type application/json;

View file

@ -1,8 +1,15 @@
{ config, lib, ... }:
{
services.nginx.virtualHosts."${config.domains.p2}" = lib.mkIf config.system.server.enable {
services.nginx.virtualHosts = lib.mkIf config.system.server.enable {
"www.${config.domains.p2}" = {
enableACME = true;
addSSL = true;
root = "/var/www/landing-page";
};
"${config.domains.p2}" = {
enableACME = true;
addSSL = true;
globalRedirect = "www.${config.domains.p2}";
};
};
}