mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2025-11-04 05:52:47 +00:00 
			
		
		
		
	Update README.md
This commit is contained in:
		
							parent
							
								
									eedde9cea1
								
							
						
					
					
						commit
						e6e38f3ada
					
				
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							@ -32,18 +32,16 @@ npm install --save letsencrypt-express
 | 
				
			|||||||
// Note: using staging server url, remove .testing() for production
 | 
					// Note: using staging server url, remove .testing() for production
 | 
				
			||||||
var LEX = require('letsencrypt-express').testing();
 | 
					var LEX = require('letsencrypt-express').testing();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function approveRegistration(hostname, cb) {
 | 
					var lex = LEX.create({
 | 
				
			||||||
 | 
					  configDir: require('os').homedir() + '/letsencrypt/etc'
 | 
				
			||||||
 | 
					, approveRegistration: function (hostname, cb) { // leave `null` to disable automatic registration
 | 
				
			||||||
    // Note: this is the place to check your database to get the user associated with this domain
 | 
					    // Note: this is the place to check your database to get the user associated with this domain
 | 
				
			||||||
    cb(null, {
 | 
					    cb(null, {
 | 
				
			||||||
      domains: [hostname]
 | 
					      domains: [hostname]
 | 
				
			||||||
    , email: 'CHANGE_ME' // user@example.com
 | 
					    , email: 'CHANGE_ME' // user@example.com
 | 
				
			||||||
    , agreeTos: true
 | 
					    , agreeTos: true
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
}
 | 
					  }
 | 
				
			||||||
 | 
					 | 
				
			||||||
var lex = LEX.create({
 | 
					 | 
				
			||||||
  configDir: require('os').homedir() + '/letsencrypt/etc'
 | 
					 | 
				
			||||||
, approveRegistration: approveRegistration                  // leave `null` to disable automatic registration
 | 
					 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user