mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-26 18:44:52 +00:00
add local domain resolution for immich
This commit is contained in:
parent
28ffa10a59
commit
6ca944fe42
@ -20,6 +20,7 @@ let
|
|||||||
config.hostnames.content
|
config.hostnames.content
|
||||||
config.hostnames.books
|
config.hostnames.books
|
||||||
config.hostnames.download
|
config.hostnames.download
|
||||||
|
config.hostnames.photos
|
||||||
];
|
];
|
||||||
mkRecord = service: "${service} A ${localIp}";
|
mkRecord = service: "${service} A ${localIp}";
|
||||||
localRecords = lib.concatLines (map mkRecord localServices);
|
localRecords = lib.concatLines (map mkRecord localServices);
|
||||||
|
@ -37,6 +37,9 @@
|
|||||||
# Configure Cloudflare DNS to point to this machine
|
# Configure Cloudflare DNS to point to this machine
|
||||||
services.cloudflare-dyndns.domains = [ config.hostnames.photos ];
|
services.cloudflare-dyndns.domains = [ config.hostnames.photos ];
|
||||||
|
|
||||||
|
# Point localhost to the local domain
|
||||||
|
networking.hosts."127.0.0.1" = [ config.hostnames.photos ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user