feat(whitby): Deploy todo.tvl.fyi page with //web/todolist
Note that this is not yet updated automatically, so the page will be stale until somebody rebuilds whitby. Change-Id: I91f4b03c9309aed289df055fac292a214dca7668 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1297 Reviewed-by: Alyssa Ross <hi@alyssa.is> Tested-by: BuildkiteCI
This commit is contained in:
		
							parent
							
								
									259750277a
								
							
						
					
					
						commit
						406e37fde1
					
				
					 2 changed files with 25 additions and 0 deletions
				
			
		
							
								
								
									
										24
									
								
								ops/nixos/www/todo.tvl.fyi.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								ops/nixos/www/todo.tvl.fyi.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| { config, ... }: | ||||
| 
 | ||||
| { | ||||
|   imports = [ | ||||
|     ./base.nix | ||||
|   ]; | ||||
| 
 | ||||
|   config = { | ||||
|     services.nginx.virtualHosts."todo.tvl.fyi" = { | ||||
|       serverName = "todo.tvl.fyi"; | ||||
|       root = config.depot.web.todolist; | ||||
|       enableACME = true; | ||||
|       forceSSL = true; | ||||
| 
 | ||||
|       extraConfig = '' | ||||
|         add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; | ||||
| 
 | ||||
|         location ~* \.(webp|woff2)$ { | ||||
|           add_header Cache-Control "public, max-age=31536000"; | ||||
|         } | ||||
|       ''; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue