Fix http acme challange for status.nekover.se
This commit is contained in:
		
					parent
					
						
							
								b8bb88a14b
							
						
					
				
			
			
				commit
				
					
						c5e743ae1c
					
				
			
		
					 2 changed files with 27 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -80,11 +80,6 @@
 | 
			
		|||
          proto = "tcp";
 | 
			
		||||
          sourcePort = 25;
 | 
			
		||||
        }
 | 
			
		||||
        {
 | 
			
		||||
          destination = "172.18.50.2:80";
 | 
			
		||||
          proto = "tcp";
 | 
			
		||||
          sourcePort = 80;
 | 
			
		||||
        }
 | 
			
		||||
        {
 | 
			
		||||
          destination = "172.18.50.2:465";
 | 
			
		||||
          proto = "tcp";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,18 @@
 | 
			
		|||
{
 | 
			
		||||
  services.nginx = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    virtualHosts."status.nekover.se" = {
 | 
			
		||||
    virtualHosts = {
 | 
			
		||||
      "mail-1.grzb.de" = {
 | 
			
		||||
        listen = [{
 | 
			
		||||
          addr = "0.0.0.0";
 | 
			
		||||
          port = 80;
 | 
			
		||||
        }];
 | 
			
		||||
        locations."/" = {
 | 
			
		||||
          # proxy port 80 to mail server nginx for acme http challange
 | 
			
		||||
          proxyPass = "http://172.18.50.2:80";
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
      "status.nekover.se" = {
 | 
			
		||||
        forceSSL = true;
 | 
			
		||||
        enableACME = true;
 | 
			
		||||
        listen = [
 | 
			
		||||
| 
						 | 
				
			
			@ -22,4 +33,5 @@
 | 
			
		|||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue