This is not for the domain root though, as that's going to be something else eventually. The canonical URLs are the .fyi ones (at least for now), and some of these tools will eventually generate links that make user sessions started from *.tvl.su converge on *.tvl.fyi. Relates to b/98 Change-Id: I1c3bcf72a3063059002e4b0bdd57c269a410a8bc Reviewed-on: https://cl.tvl.fyi/c/depot/+/2758 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			533 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			533 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { config, ... }:
 | |
| 
 | |
| {
 | |
|   imports = [
 | |
|     ./base.nix
 | |
|   ];
 | |
| 
 | |
|   config = {
 | |
|     services.nginx.virtualHosts.gerrit = {
 | |
|       serverName = "cl.tvl.fyi";
 | |
|       serverAliases = [ "cl.tvl.su" ];
 | |
|       enableACME = true;
 | |
|       forceSSL = true;
 | |
| 
 | |
|       extraConfig = ''
 | |
|         location / {
 | |
|           proxy_pass http://localhost:4778;
 | |
|           proxy_set_header  X-Forwarded-For $remote_addr;
 | |
|           # The :443 suffix is a workaround for https://b.tvl.fyi/issues/88.
 | |
|           proxy_set_header  Host $host:443;
 | |
|         }
 | |
|       '';
 | |
|     };
 | |
|   };
 | |
| }
 |