forked from fediversity/fediversity
		
	ACME
This commit is contained in:
		
							parent
							
								
									d1f58573d8
								
							
						
					
					
						commit
						a2c54ff172
					
				
					 2 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -100,4 +100,14 @@ in {
 | 
			
		|||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = {
 | 
			
		||||
    ## FIXME: This should clearly go somewhere else; and we should have a
 | 
			
		||||
    ## `staging` vs. `production` setting somewhere.
 | 
			
		||||
    security.acme = {
 | 
			
		||||
      acceptTerms = true;
 | 
			
		||||
      defaults.email = "nicolas.jeannerod+fediversity@moduscreate.com";
 | 
			
		||||
      defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,6 +50,8 @@ lib.mkIf (config.fediversity.enable && config.fediversity.pixelfed.enable) {
 | 
			
		|||
    ##
 | 
			
		||||
    ## TODO: If that indeed makes sense, upstream.
 | 
			
		||||
    nginx = {
 | 
			
		||||
      forceSSL = true;
 | 
			
		||||
      enableACME = true;
 | 
			
		||||
      # locations."/public/".proxyPass = "${config.fediversity.internal.garage.web.urlFor "pixelfed"}/public/";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue