Add immich
This commit is contained in:
		
							parent
							
								
									2210d8eecf
								
							
						
					
					
						commit
						782ce76ce4
					
				
					 3 changed files with 24 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -10,6 +10,7 @@
 | 
			
		|||
		../../common/services/tailscale.nix
 | 
			
		||||
		../../common/users.nix
 | 
			
		||||
		./services/acme.nix
 | 
			
		||||
		./services/immich.nix
 | 
			
		||||
		./services/nextcloud.nix
 | 
			
		||||
		./services/nginx.nix
 | 
			
		||||
		./services/postgres.nix
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								config/hosts/rudiger/services/immich.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								config/hosts/rudiger/services/immich.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
	services.immich = {
 | 
			
		||||
		enable = true;
 | 
			
		||||
		port = 2283;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -5,4 +5,19 @@
 | 
			
		|||
    enableACME = true;
 | 
			
		||||
    forceSSL = true;
 | 
			
		||||
  };
 | 
			
		||||
  services.immich.virtualHosts."immich.graven.dev" = {
 | 
			
		||||
    enableACME = true;
 | 
			
		||||
    forceSSL = true;
 | 
			
		||||
    locations."/" = {
 | 
			
		||||
      proxyPass = "http://[::1]:${toString config.services.immich.port}";      
 | 
			
		||||
      proxyWebsockets = true;
 | 
			
		||||
      recommendedProxySettings = true;
 | 
			
		||||
      extraConfig = ''
 | 
			
		||||
        client_max_body_size 50000M;
 | 
			
		||||
        proxy_read_timeout   600s;
 | 
			
		||||
        proxy_send_timeout   600s;
 | 
			
		||||
        send_timeout         600s;
 | 
			
		||||
      '';
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue