forked from fabian/nix
		
	vps: add calibre
This commit is contained in:
		
							parent
							
								
									05d397f53e
								
							
						
					
					
						commit
						dd6a8f9e1c
					
				
					 2 changed files with 32 additions and 0 deletions
				
			
		
							
								
								
									
										31
									
								
								sys/platforms/vps/srv/calibre-web.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								sys/platforms/vps/srv/calibre-web.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,31 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| with lib; { | ||||
|   services = { | ||||
|     nginx = { | ||||
|       virtualHosts."calibre.posixlycorrect.com" = { | ||||
|         enableACME = true; | ||||
|         forceSSL = true; | ||||
|         extraConfig = '' | ||||
|           proxy_headers_hash_max_size 512; | ||||
|           proxy_headers_hash_bucket_size 128; | ||||
|         ''; | ||||
|         locations."/" = { | ||||
|           proxyPass = "http://[::1]:8083"; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     calibre-web = { | ||||
|       enable = true; | ||||
|       openFirewall = true; | ||||
|       options = { | ||||
|         enableBookUploading = true; | ||||
|         calibreLibrary = "/var/lib/calibre-web/calibre_library"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  | @ -16,5 +16,6 @@ with lib; { | |||
|     ./trilium.nix | ||||
|     ./syncthing.nix | ||||
|     ./shiori.nix | ||||
|     ./calibre-web.nix | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue