mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	fix note on plugins
This commit is contained in:
		
							parent
							
								
									53321d219a
								
							
						
					
					
						commit
						d61955e6b6
					
				| @ -248,9 +248,7 @@ var lex = require('greenlock-express').create({ | |||||||
|   server: 'https://acme-staging-v02.api.letsencrypt.org/directory' |   server: 'https://acme-staging-v02.api.letsencrypt.org/directory' | ||||||
| , version: 'draft-11' // Let's Encrypt v2 (ACME v2) | , version: 'draft-11' // Let's Encrypt v2 (ACME v2) | ||||||
| 
 | 
 | ||||||
| // If you wish to replace the default plugins, you may do so here |   // If you wish to replace the default account and domain key storage plugin | ||||||
| // |  | ||||||
| , challenges: { 'http-01': require('le-challenge-fs').create({ webrootPath: '/tmp/acme-challenges' }) } |  | ||||||
| , store: require('le-store-certbot').create({ webrootPath: '/tmp/acme-challenges' }) | , store: require('le-store-certbot').create({ webrootPath: '/tmp/acme-challenges' }) | ||||||
| 
 | 
 | ||||||
| // You probably wouldn't need to replace the default sni handler | // You probably wouldn't need to replace the default sni handler | ||||||
| @ -262,7 +260,6 @@ var lex = require('greenlock-express').create({ | |||||||
|   // Join the community to get notified of important updates and help me make greenlock better |   // Join the community to get notified of important updates and help me make greenlock better | ||||||
| , communityMember: true | , communityMember: true | ||||||
| 
 | 
 | ||||||
| , store: require('le-store-certbot').create({ webrootPath: '/tmp/acme-challenges' }) |  | ||||||
| }); | }); | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| @ -278,6 +275,7 @@ function approveDomains(opts, certs, cb) { | |||||||
|   // Opt-in to submit stats and get important updates |   // Opt-in to submit stats and get important updates | ||||||
|   opts.communityMember = true; |   opts.communityMember = true; | ||||||
| 
 | 
 | ||||||
|  |   // If you wish to replace the default challenge plugin, you may do so here | ||||||
|   opts.challenges = { 'http-01': http01 }; |   opts.challenges = { 'http-01': http01 }; | ||||||
| 
 | 
 | ||||||
|   // The domains being approved for the first time are listed in opts.domains |   // The domains being approved for the first time are listed in opts.domains | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user