forked from fediversity/fediversity
		
	acme fixup
This commit is contained in:
		
							parent
							
								
									2364e122a2
								
							
						
					
					
						commit
						2a28e0289d
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -172,10 +172,12 @@ in
 | 
			
		|||
        s3_api.root_domain = ".${fedicfg.api.domain}";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    services.nginx.virtualHosts."garagePortProxy" = {
 | 
			
		||||
      forceSSL = true;
 | 
			
		||||
      enableACME = true;
 | 
			
		||||
      serverName = "*.${fedicfg.web.rootDomain}";
 | 
			
		||||
      useACME = true;
 | 
			
		||||
      serverName = fedicfg.web.rootDomain;
 | 
			
		||||
      serverAliases = lib.mapAttrsToList (bucket: _: "${bucket}.${fedicfg.web.rootDomain}") cfg.ensureBuckets; ## TODO: use wildcard certificates?
 | 
			
		||||
      locations."/" = {
 | 
			
		||||
        proxyPass = "http://localhost:3902";
 | 
			
		||||
        extraConfig = ''
 | 
			
		||||
| 
						 | 
				
			
			@ -183,6 +185,7 @@ in
 | 
			
		|||
        '';
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
   
 | 
			
		||||
    systemd.services.ensure-garage = {
 | 
			
		||||
      after = [ "garage.service" ];
 | 
			
		||||
      wantedBy = [ "garage.service" ];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue