forked from jan-leila/nix-config
		
	refactor: split server modules into smaller more manageable files
This commit is contained in:
		
							parent
							
								
									b2e5ae1f98
								
							
						
					
					
						commit
						cdeb4e108b
					
				
					 49 changed files with 1519 additions and 1270 deletions
				
			
		
							
								
								
									
										25
									
								
								modules/nixos-modules/server/jellyfin/proxy.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								modules/nixos-modules/server/jellyfin/proxy.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: let | ||||
|   jellyfinPort = 8096; | ||||
| in { | ||||
|   config = lib.mkIf (config.services.jellyfin.enable && config.host.reverse_proxy.enable) { | ||||
|     host.reverse_proxy.subdomains.jellyfin = { | ||||
|       target = "http://localhost:${toString jellyfinPort}"; | ||||
| 
 | ||||
|       subdomain = config.services.jellyfin.subdomain; | ||||
|       extraSubdomains = config.services.jellyfin.extraSubdomains; | ||||
| 
 | ||||
|       forwardHeaders.enable = true; | ||||
| 
 | ||||
|       extraConfig = '' | ||||
|         client_max_body_size 20M; | ||||
|         add_header X-Content-Type-Options "nosniff"; | ||||
| 
 | ||||
|         proxy_buffering off; | ||||
|       ''; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue