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" ];
# };
# "kwahson.xyz" = {
# extraDomainNames = [ "*.kwahson.xyz" ];
# };
"kwahson.xyz" = {
extraDomainNames = [ "*.kwahson.xyz" ];
};
# "toph.cc" = {
# extraDomainNames = [ "*.toph.cc" ];
# };
"toph.cc" = {
extraDomainNames = [ "*.toph.cc" ];
};
"ryot.foo" = {
extraDomainNames = [ "*.ryot.foo" ];

View file

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

View file

@ -19,7 +19,7 @@
];
# 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.
# - Each target host runs Caddy to serve its site.
# No Docker labels, no discovery magic—just reliable routing clearly documented with Nix.
@ -48,6 +48,8 @@
"/outline.ryot.foo/104.40.3.44"
"/plane.ryot.foo/104.40.3.44"
"/blog.toph.cc/104.40.3.44"
## SOCK ##
"/upsnap.ryot.foo/104.40.3.54"
"/sock.ryot.foo/104.40.3.54"