phantom: install invidious
This commit is contained in:
		
							parent
							
								
									b6bd4d7956
								
							
						
					
					
						commit
						37c1322165
					
				
					 2 changed files with 21 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -19,6 +19,7 @@
 | 
			
		|||
    ./email.nix
 | 
			
		||||
    ./forgejo.nix
 | 
			
		||||
    ./warthunder-leak-counter.nix
 | 
			
		||||
    ./invidious.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  networking.hostName = "phantom";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										20
									
								
								hosts/phantom/invidious.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								hosts/phantom/invidious.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
{ config, ... }:
 | 
			
		||||
{
 | 
			
		||||
  services.invidious = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    domain = "invidious.lelgenio.com";
 | 
			
		||||
    nginx.enable = true;
 | 
			
		||||
    settings.db = {
 | 
			
		||||
      user = "invidious";
 | 
			
		||||
      dbname = "invidious";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  services.nginx = {
 | 
			
		||||
    clientMaxBodySize = "100m";
 | 
			
		||||
    virtualHosts.${config.services.invidious.domain} = {
 | 
			
		||||
      enableACME = true;
 | 
			
		||||
      forceSSL = true;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue