services/websites: host ky.rip

This commit is contained in:
Max Headroom 2022-05-21 13:56:56 +02:00
parent 31b8a989fa
commit 54116aafea
2 changed files with 18 additions and 2 deletions

View file

@ -1,5 +1,11 @@
{ config, lib, tools, ... }:
{
services.nginx.virtualHosts = tools.nginx.mappers.mapSubdomains (import ./websites.nix { tools = tools.nginx; });
let
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;
}

View 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;
}