Make nginx listen on all interfaces
Needed for local hosts to contact the nix cache via HTTP directly. We also allow the incoming traffic on port 80. Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
		
							parent
							
								
									afd3aa112d
								
							
						
					
					
						commit
						a912b76ab4
					
				| @ -17,13 +17,14 @@ let | ||||
|   }; | ||||
| in | ||||
| { | ||||
|   networking.firewall.allowedTCPPorts = [ 80 ]; | ||||
|   services.nginx = { | ||||
|     enable = true; | ||||
|     virtualHosts."jungle.bsc.es" = { | ||||
|       root = "${website}"; | ||||
|       listen = [ | ||||
|         { | ||||
|           addr = "127.0.0.1"; | ||||
|           addr = "0.0.0.0"; | ||||
|           port = 80; | ||||
|         } | ||||
|       ]; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user