forked from jan-leila/nix-config
		
	feat: added per service enable options for reverseProxy configs
This commit is contained in:
		
							parent
							
								
									7f74060713
								
							
						
					
					
						commit
						ecec04a9ce
					
				
					 8 changed files with 52 additions and 8 deletions
				
			
		|  | @ -14,9 +14,13 @@ | |||
|       description = "extra domains that should be configured for actual"; | ||||
|       default = []; | ||||
|     }; | ||||
|     reverseProxy.enable = lib.mkOption { | ||||
|       type = lib.types.bool; | ||||
|       default = config.services.actual.enable && config.services.reverseProxy.enable; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   config = lib.mkIf (config.services.actual.enable && config.services.reverseProxy.enable) { | ||||
|   config = lib.mkIf config.services.actual.reverseProxy.enable { | ||||
|     services.reverseProxy.services.actual = { | ||||
|       target = "http://localhost:${toString config.services.actual.settings.port}"; | ||||
|       domain = config.services.actual.domain; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue