Add extra domain names for kwahson and toph in ACME configuration; update dnsmasq for blog.toph.cc

This commit is contained in:
Chris Toph 2025-06-12 15:05:40 -04:00
parent ca8d7eeac2
commit aa9b48fcc9
3 changed files with 20 additions and 13 deletions

View file

@ -34,13 +34,13 @@ in
# extraDomainNames = [ "*.kwahson.com" ]; # extraDomainNames = [ "*.kwahson.com" ];
# }; # };
# "kwahson.xyz" = { "kwahson.xyz" = {
# extraDomainNames = [ "*.kwahson.xyz" ]; extraDomainNames = [ "*.kwahson.xyz" ];
# }; };
# "toph.cc" = { "toph.cc" = {
# extraDomainNames = [ "*.toph.cc" ]; extraDomainNames = [ "*.toph.cc" ];
# }; };
"ryot.foo" = { "ryot.foo" = {
extraDomainNames = [ "*.ryot.foo" ]; extraDomainNames = [ "*.ryot.foo" ];

View file

@ -2,12 +2,17 @@
services.caddy = { services.caddy = {
enable = true; enable = true;
virtualHosts = { virtualHosts = {
# "ryot.foo" = {
# useACMEHost = "ryot.foo"; ## TOPH.CC ##
# extraConfig = ''
# reverse_proxy 104.40.3.44:80 "blog.toph.cc" = {
# ''; useACMEHost = "toph.cc";
# }; extraConfig = ''
reverse_proxy localhost:2368
'';
};
## RYOT.FOO ##
"auth.ryot.foo" = { "auth.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";

View file

@ -19,7 +19,7 @@
]; ];
# INFO: Why this setup for services? # INFO: Why this setup for services?
# - OpenWRT forwards every *.ryot.foo query to this DNS server # - OpenWRT forwards every *ryot.foo and *toph.cc query to this DNS server
# - dnsmasq hands out fixed IPs for those subdomains. # - dnsmasq hands out fixed IPs for those subdomains.
# - Each target host runs Caddy to serve its site. # - Each target host runs Caddy to serve its site.
# No Docker labels, no discovery magic—just reliable routing clearly documented with Nix. # No Docker labels, no discovery magic—just reliable routing clearly documented with Nix.
@ -48,6 +48,8 @@
"/outline.ryot.foo/104.40.3.44" "/outline.ryot.foo/104.40.3.44"
"/plane.ryot.foo/104.40.3.44" "/plane.ryot.foo/104.40.3.44"
"/blog.toph.cc/104.40.3.44"
## SOCK ## ## SOCK ##
"/upsnap.ryot.foo/104.40.3.54" "/upsnap.ryot.foo/104.40.3.54"
"/sock.ryot.foo/104.40.3.54" "/sock.ryot.foo/104.40.3.54"