phantom: add a top level domain page
This commit is contained in:
		
							parent
							
								
									808216eccf
								
							
						
					
					
						commit
						b568a17c96
					
				
					 1 changed files with 18 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -15,6 +15,24 @@
 | 
			
		|||
    ./forgejo.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  services.nginx.virtualHosts."lelgenio.xyz" = {
 | 
			
		||||
    enableACME = true;
 | 
			
		||||
    forceSSL = true;
 | 
			
		||||
    root = pkgs.runCommand "www-dir" { } ''
 | 
			
		||||
      mkdir -p $out
 | 
			
		||||
      cat > $out/index.html <<EOF
 | 
			
		||||
        <!DOCTYPE html>
 | 
			
		||||
        <html lang="en">
 | 
			
		||||
        <body>
 | 
			
		||||
          <h1>
 | 
			
		||||
              Nothing to see here!
 | 
			
		||||
          <h1>
 | 
			
		||||
        </body>
 | 
			
		||||
        </html>
 | 
			
		||||
      EOF
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # # Enable networking
 | 
			
		||||
  # networking.networkmanager.enable = true;
 | 
			
		||||
  # Set your time zone.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue