invidious: fix conflic with forgejo port
This commit is contained in:
		
							parent
							
								
									a7eb3ce176
								
							
						
					
					
						commit
						4a61403ede
					
				
					 3 changed files with 2 additions and 12 deletions
				
			
		| 
						 | 
					@ -13,9 +13,6 @@ in
 | 
				
			||||||
    virtualHosts.${cfg.settings.server.DOMAIN} = {
 | 
					    virtualHosts.${cfg.settings.server.DOMAIN} = {
 | 
				
			||||||
      forceSSL = true;
 | 
					      forceSSL = true;
 | 
				
			||||||
      enableACME = true;
 | 
					      enableACME = true;
 | 
				
			||||||
      extraConfig = ''
 | 
					 | 
				
			||||||
        client_max_body_size 512M;
 | 
					 | 
				
			||||||
      '';
 | 
					 | 
				
			||||||
      locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
 | 
					      locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,20 +1,12 @@
 | 
				
			||||||
{ config, ... }:
 | 
					 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  services.invidious = {
 | 
					  services.invidious = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
    domain = "invidious.lelgenio.com";
 | 
					    domain = "invidious.lelgenio.com";
 | 
				
			||||||
    nginx.enable = true;
 | 
					    nginx.enable = true;
 | 
				
			||||||
 | 
					    port = 10601;
 | 
				
			||||||
    settings.db = {
 | 
					    settings.db = {
 | 
				
			||||||
      user = "invidious";
 | 
					      user = "invidious";
 | 
				
			||||||
      dbname = "invidious";
 | 
					      dbname = "invidious";
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					 | 
				
			||||||
  services.nginx = {
 | 
					 | 
				
			||||||
    clientMaxBodySize = "100m";
 | 
					 | 
				
			||||||
    virtualHosts.${config.services.invidious.domain} = {
 | 
					 | 
				
			||||||
      enableACME = true;
 | 
					 | 
				
			||||||
      forceSSL = true;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,6 +11,7 @@
 | 
				
			||||||
    recommendedTlsSettings = true;
 | 
					    recommendedTlsSettings = true;
 | 
				
			||||||
    recommendedOptimisation = true;
 | 
					    recommendedOptimisation = true;
 | 
				
			||||||
    recommendedGzipSettings = true;
 | 
					    recommendedGzipSettings = true;
 | 
				
			||||||
 | 
					    clientMaxBodySize = "512M";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Redirect *lelgenio.xyz -> *lelgenio.com
 | 
					  # Redirect *lelgenio.xyz -> *lelgenio.com
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue