Add ponthirtaekwondo.co.uk website
All checks were successful
/ check (push) Successful in 48s

This commit is contained in:
Oliver Davies 2025-11-03 21:05:24 +00:00
parent 494b0d6edd
commit 297c8cd990
3 changed files with 56 additions and 1 deletions

View file

@ -51,5 +51,8 @@ in
users.users.${config.services.nginx.user}.extraGroups = [ "acme" ];
imports = [ ./www.oliverdavies.uk ];
imports = [
./ponthirtaekwondo.co.uk.nix
./www.oliverdavies.uk
];
}

View file

@ -0,0 +1,51 @@
{ config, ... }:
let
name = "ponthirtaekwondo.co.uk";
ports = config.homelab.ports;
port = ports.nginx-ponthir-taekwondo;
in
{
security.acme.certs = {
"ponthirtaekwondo.co.uk" = {
domain = "ponthirtaekwondo.co.uk";
dnsProvider = "cloudflare";
email = "oliver@oliverdavies.uk";
environmentFile = config.age.secrets.cloudflare.path;
webroot = null;
extraDomainNames = [
"www.ponthirtaekwondo.co.uk"
];
};
};
services = {
nginx.virtualHosts = {
"www.${name}" = {
root = "/var/www/vhosts/${name}";
listen = [
{
inherit port;
addr = "localhost";
}
];
locations."/".tryFiles = "$uri $uri.html $uri/index.html =404";
extraConfig = ''
port_in_redirect off;
# Remove trailing slashes.
rewrite ^/(.*)/$ /$1 permanent;
'';
};
};
cloudflared.tunnels."e1514105-327f-4984-974e-e2fbaca76466".ingress = {
"www.ponthirtaekwondo.co.uk" = "http://localhost:${toString port}";
};
};
}

View file

@ -26,6 +26,7 @@ in
nginx-florida-drupalcamp-tailwind-css = 8083;
nginx-luke = 8094;
nginx-phpsw-sculpin-demo = 8085;
nginx-ponthir-taekwondo = 9004;
nginx-rebuilding-acquia = 8086;
nginx-rebuilding-bartik = 8087;
nginx-rebuilding-bristol-js = 8088;