Server: add immich
This commit is contained in:
parent
5847ecfe1b
commit
251f88df02
2 changed files with 25 additions and 0 deletions
|
|
@ -18,5 +18,6 @@
|
|||
./grafana.nix
|
||||
./prometheus.nix
|
||||
./changedetection-io.nix
|
||||
./immich.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
24
roles/server/immich.nix
Normal file
24
roles/server/immich.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{...}: {
|
||||
services.immich = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server.externalDomain = "https://photos.everest.tailscale";
|
||||
server.publicUsers = false;
|
||||
};
|
||||
};
|
||||
# Add a record for transmission
|
||||
services.headscale.settings.dns.extra_records = [
|
||||
{
|
||||
name = "photos.everest.tailscale";
|
||||
type = "A";
|
||||
value = "100.100.0.1";
|
||||
}
|
||||
];
|
||||
services.caddy.virtualHosts.immich = {
|
||||
hostName = "photos.everest.tailscale";
|
||||
extraConfig = ''
|
||||
import tailscale
|
||||
reverse_proxy localhost:2283
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue