immich: add photos-local.masu.rs DNS record and Caddy route

This commit is contained in:
Noah Masur committed 2026-11-16 01:39:23 +00:00
1 parent 23aee86f4b
commit 04ab27d16c
4 files changed
+98 -3

No files matched your search

@@ -57,7 +57,14 @@ in
nmasur.presets.services.caddy.routes = [
{
match = [ { host = [ hostnames.photos ]; } ];
match = [
{
host = [
hostnames.photos
hostnames.photosLocal
];
}
];
handle = [
{
handler = "reverse_proxy";
@@ -69,9 +76,13 @@ in
# Configure Cloudflare DNS to point to this machine
services.cloudflare-dyndns.domains = [ hostnames.photos ];
nmasur.presets.services.cloudflare.dnsRecords.${hostnames.photosLocal} = "192.168.1.218";
# Point localhost to the local domain
networking.hosts."127.0.0.1" = [ hostnames.photos ];
networking.hosts."127.0.0.1" = [
hostnames.photos
hostnames.photosLocal
];
# Backups
services.restic.backups.default.paths = [ "/data/images" ];