This is a follow up to cl/7191 which neglected to adjust the status.tvl.su.nix module and re-enable it. Change-Id: Icc1917004cd50e5eab61a29bc68b393ba9bd6325 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7226 Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: grfn <grfn@gws.fyi>
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			534 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			534 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { config, ... }:
 | |
| 
 | |
| {
 | |
|   imports = [
 | |
|     ./base.nix
 | |
|   ];
 | |
| 
 | |
|   config = {
 | |
|     services.nginx.virtualHosts."status-fyi" = {
 | |
|       serverName = "status.tvl.fyi";
 | |
|       enableACME = true;
 | |
|       extraConfig = "return 302 https://status.tvl.su$request_uri;";
 | |
|     };
 | |
| 
 | |
|     services.nginx.virtualHosts.grafana = {
 | |
|       serverName = "status.tvl.su";
 | |
|       enableACME = true;
 | |
|       forceSSL = true;
 | |
| 
 | |
|       locations."/" = {
 | |
|         proxyPass = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| }
 |