forked from fabian/nix
		
	vps: add immich
This commit is contained in:
		
							parent
							
								
									7748c67e45
								
							
						
					
					
						commit
						9636646eb4
					
				
					 2 changed files with 34 additions and 0 deletions
				
			
		|  | @ -17,5 +17,6 @@ with lib; { | ||||||
|     ./syncthing.nix |     ./syncthing.nix | ||||||
|     ./shiori.nix |     ./shiori.nix | ||||||
|     ./calibre-web.nix |     ./calibre-web.nix | ||||||
|  |     ./immich.nix | ||||||
|   ]; |   ]; | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										33
									
								
								sys/platforms/vps/srv/immich.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								sys/platforms/vps/srv/immich.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,33 @@ | ||||||
|  | { | ||||||
|  |   lib, | ||||||
|  |   pkgs, | ||||||
|  |   ... | ||||||
|  | }: | ||||||
|  | with lib; { | ||||||
|  |   services = { | ||||||
|  |     nginx = { | ||||||
|  |       virtualHosts."photos.posixlycorrect.com" = { | ||||||
|  |         enableACME = true; | ||||||
|  |         forceSSL = true; | ||||||
|  |         extraConfig = '' | ||||||
|  |           proxy_headers_hash_max_size 512; | ||||||
|  |           proxy_headers_hash_bucket_size 128; | ||||||
|  |         ''; | ||||||
|  |         locations."/" = { | ||||||
|  |           proxyPass = "http://localhost:2283"; | ||||||
|  |         }; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     immich = { | ||||||
|  |       enable = true; | ||||||
|  |       secretsFile = "/var/trust/immich/secrets.txt"; | ||||||
|  |       openFirewall = true; | ||||||
|  |       mediaLocation = "/mnt/export2178/immich/media"; | ||||||
|  |       machine-learning.enable = false; | ||||||
|  |       environment = { | ||||||
|  |         IMMICH_TELEMETRY_EXCLUDE = "host,api,io,repo,job"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue