services/websites: host ky.rip
This commit is contained in:
parent
31b8a989fa
commit
54116aafea
2 changed files with 18 additions and 2 deletions
|
@ -1,5 +1,11 @@
|
||||||
{ config, lib, tools, ... }:
|
{ config, lib, tools, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
services.nginx.virtualHosts = tools.nginx.mappers.mapSubdomains (import ./websites.nix { tools = tools.nginx; });
|
importWebsites = expr: import expr { tools = tools.nginx; };
|
||||||
|
|
||||||
|
websites = tools.nginx.mappers.mapSubdomains (importWebsites ./websites.nix);
|
||||||
|
|
||||||
|
extraWebsites = importWebsites ./extra-sites.nix;
|
||||||
|
in {
|
||||||
|
services.nginx.virtualHosts = websites // extraWebsites;
|
||||||
}
|
}
|
||||||
|
|
10
hosts/VEGAS/services/websites/extra-sites.nix
Normal file
10
hosts/VEGAS/services/websites/extra-sites.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ tools }:
|
||||||
|
with tools.vhosts;
|
||||||
|
let
|
||||||
|
inherit (tools) domain;
|
||||||
|
|
||||||
|
noSSL = { enableACME = false; forceSSL = false; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
"ky.rip" = simplePHP "/srv/storage/www/ky.rip" // noSSL;
|
||||||
|
}
|
Loading…
Reference in a new issue