Change-Id: Ic701552e130252cfff005938d9c4e98423a7a96a Reviewed-on: https://cl.tvl.fyi/c/depot/+/1069 Reviewed-by: lukegb <lukegb@tvl.fyi> Tested-by: BuildkiteCI
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			413 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			413 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { config, ... }:
 | |
| 
 | |
| {
 | |
|   imports = [
 | |
|     ./base.nix
 | |
|   ];
 | |
| 
 | |
|   config = {
 | |
|     services.nginx.virtualHosts.gerrit = {
 | |
|       serverName = "cl.tvl.fyi";
 | |
|       enableACME = true;
 | |
|       forceSSL = true;
 | |
| 
 | |
|       extraConfig = ''
 | |
|         location / {
 | |
|           proxy_pass http://localhost:4778;
 | |
|           proxy_set_header  X-Forwarded-For $remote_addr;
 | |
|           proxy_set_header  Host $host;
 | |
|         }
 | |
|       '';
 | |
|     };
 | |
|   };
 | |
| }
 |