forked from fabian/nix
		
	vps: add mealie
This commit is contained in:
		
							parent
							
								
									1755bf7d18
								
							
						
					
					
						commit
						d2eb1518c7
					
				
					 2 changed files with 38 additions and 0 deletions
				
			
		|  | @ -19,5 +19,6 @@ with lib; { | ||||||
|     ./calibre-web.nix |     ./calibre-web.nix | ||||||
|     ./immich.nix |     ./immich.nix | ||||||
|     ./wiki-js.nix |     ./wiki-js.nix | ||||||
|  |     ./mealie.nix | ||||||
|   ]; |   ]; | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										37
									
								
								sys/platforms/vps/srv/mealie.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								sys/platforms/vps/srv/mealie.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,37 @@ | ||||||
|  | { | ||||||
|  |   lib, | ||||||
|  |   pkgs, | ||||||
|  |   ... | ||||||
|  | }: | ||||||
|  | with lib; { | ||||||
|  |   systemd.services.wiki-js = { | ||||||
|  |     requires = ["postgresql.service"]; | ||||||
|  |     after = ["postgresql.service"]; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   services = { | ||||||
|  |     nginx = { | ||||||
|  |       virtualHosts."food.posixlycorrect.com" = { | ||||||
|  |         enableACME = true; | ||||||
|  |         forceSSL = true; | ||||||
|  |         extraConfig = '' | ||||||
|  |           proxy_headers_hash_max_size 512; | ||||||
|  |           proxy_headers_hash_bucket_size 128; | ||||||
|  |         ''; | ||||||
|  |         locations."/" = { | ||||||
|  |           proxyPass = "http://127.0.0.1:9000"; | ||||||
|  |         }; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     mealie = { | ||||||
|  |       enable = true; | ||||||
|  |       listenAddress = "127.0.0.1"; | ||||||
|  |       port = 9000; | ||||||
|  |       credentialsFile = "/var/trust/mealie/credentials.env"; | ||||||
|  |       settings = { | ||||||
|  |         ALLOW_SIGNUP = "false"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue