adding audiobookshelf to nix
This commit is contained in:
		
							parent
							
								
									543c78db6c
								
							
						
					
					
						commit
						0f3c4b3e1b
					
				
					 2 changed files with 18 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								modules/audiobookshelf.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								modules/audiobookshelf.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
{ pkgs, lib, config, ... }:
 | 
			
		||||
 | 
			
		||||
with lib;
 | 
			
		||||
{
 | 
			
		||||
  services.audiobookshelf = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    host = "0.0.0.0";
 | 
			
		||||
    port = "8999";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  services.caddy.virtualHosts = {
 | 
			
		||||
      "abs.cochrun.xyz".extraConfig = ''
 | 
			
		||||
        reverse_proxy localhost:${services.audiobookshelf.port}
 | 
			
		||||
      '';
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
  
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue