Redirect jimfiles and nixfox to www
This commit is contained in:
parent
cc68f883ba
commit
b0247d330e
|
@ -3,6 +3,7 @@
|
||||||
services.nginx.virtualHosts."${config.domains.p1}" = lib.mkIf config.system.server.enable {
|
services.nginx.virtualHosts."${config.domains.p1}" = lib.mkIf config.system.server.enable {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
|
globalRedirect = "www.${config.domains.p2}";
|
||||||
locations = {
|
locations = {
|
||||||
"/.well-known/matrix/client".extraConfig = ''
|
"/.well-known/matrix/client".extraConfig = ''
|
||||||
default_type application/json;
|
default_type application/json;
|
||||||
|
|
|
@ -1,8 +1,15 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts."${config.domains.p2}" = lib.mkIf config.system.server.enable {
|
services.nginx.virtualHosts = lib.mkIf config.system.server.enable {
|
||||||
enableACME = true;
|
"www.${config.domains.p2}" = {
|
||||||
addSSL = true;
|
enableACME = true;
|
||||||
root = "/var/www/landing-page";
|
addSSL = true;
|
||||||
|
root = "/var/www/landing-page";
|
||||||
|
};
|
||||||
|
"${config.domains.p2}" = {
|
||||||
|
enableACME = true;
|
||||||
|
addSSL = true;
|
||||||
|
globalRedirect = "www.${config.domains.p2}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue