26 lines
		
	
	
	
		
			478 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			478 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ config, ... }:
 | 
						|
{
 | 
						|
  services.nginx = {
 | 
						|
    enable = true;
 | 
						|
 | 
						|
    virtualHosts."jellyseerr.grzb.de" = {
 | 
						|
      forceSSL = true;
 | 
						|
      enableACME = true;
 | 
						|
      listen = [
 | 
						|
        {
 | 
						|
          addr = "0.0.0.0";
 | 
						|
          port = 80;
 | 
						|
        }
 | 
						|
        {
 | 
						|
          addr = "0.0.0.0";
 | 
						|
          port = 443;
 | 
						|
          ssl = true;
 | 
						|
        }
 | 
						|
      ];
 | 
						|
 | 
						|
      locations."/" = {
 | 
						|
        proxyPass = "http://localhost:${builtins.toString config.services.jellyseerr.port}";
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |