forked from jan-leila/nix-config
		
	added port forwards to services
This commit is contained in:
		
							parent
							
								
									6ab64fafe1
								
							
						
					
					
						commit
						12e1f8067b
					
				
					 3 changed files with 14 additions and 34 deletions
				
			
		|  | @ -4,6 +4,8 @@ | |||
|   ... | ||||
| }: let | ||||
|   dataDir = "/var/lib/acme"; | ||||
|   httpPort = 80; | ||||
|   httpsPort = 443; | ||||
| in { | ||||
|   options.host.reverse_proxy = { | ||||
|     enable = lib.mkEnableOption "turn on the reverse proxy"; | ||||
|  | @ -54,6 +56,11 @@ in { | |||
|           }) | ||||
|         config.host.reverse_proxy.subdomains; | ||||
|       }; | ||||
| 
 | ||||
|       networking.firewall.allowedTCPPorts = [ | ||||
|         httpPort | ||||
|         httpsPort | ||||
|       ]; | ||||
|     } | ||||
|     (lib.mkIf config.host.impermanence.enable { | ||||
|       # TODO: figure out how to write an assertion for this | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue