fix ports
This commit is contained in:
parent
f5a0bab032
commit
6f4d946c90
3
data.nix
3
data.nix
@ -23,7 +23,8 @@ rec {
|
||||
ports = {
|
||||
grafana = 3000;
|
||||
gitea = 3001;
|
||||
immich = 3003;
|
||||
immich-server = 3002;
|
||||
immich-machine-learning = 3003; # as of writing, hardcoded in the immich module
|
||||
|
||||
soju = 6697;
|
||||
soju-ws = 6698;
|
||||
|
@ -20,7 +20,7 @@ in
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.immich = {
|
||||
enable = true;
|
||||
port = myData.ports.immich;
|
||||
port = myData.ports.immich-server;
|
||||
package = pkgs.pkgs-unstable.immich;
|
||||
mediaLocation = "/var/cache/immich/userdata";
|
||||
};
|
||||
@ -28,13 +28,13 @@ in
|
||||
mj.services.friendlyport.ports = [
|
||||
{
|
||||
subnets = [ myData.subnets.tailscale.cidr ];
|
||||
tcp = [ myData.ports.immich ];
|
||||
tcp = [ myData.ports.immich-server ];
|
||||
}
|
||||
];
|
||||
|
||||
systemd = {
|
||||
tmpfiles.rules = [ "d /var/cache/immich/userdata 0700 immich immich -" ];
|
||||
services.immich.serviceConfig = {
|
||||
services.immich-server.serviceConfig = {
|
||||
ProtectHome = lib.mkForce "tmpfs";
|
||||
CacheDirectory = "immich";
|
||||
BindPaths = lib.mapAttrsToList (
|
||||
|
Loading…
Reference in New Issue
Block a user