mirror of
				https://github.com/therootcompany/greenlock.js.git
				synced 2025-10-30 19:42:47 +00:00 
			
		
		
		
	no backends
This commit is contained in:
		
							parent
							
								
									eaa58694f0
								
							
						
					
					
						commit
						9cd4be8bf6
					
				| @ -11,7 +11,7 @@ config.le.server = LE.stagingServer; | |||||||
| //
 | //
 | ||||||
| // Manual Registration
 | // Manual Registration
 | ||||||
| //
 | //
 | ||||||
| var le = LE.create(require('../backends/ursa'), config.le); | var le = LE.create(config.le); | ||||||
| le.backend.registerAsync({ | le.backend.registerAsync({ | ||||||
|   agreeTos: true |   agreeTos: true | ||||||
| , domains: ['example.com']            // CHANGE TO YOUR DOMAIN
 | , domains: ['example.com']            // CHANGE TO YOUR DOMAIN
 | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								index.js
									
									
									
									
									
								
							| @ -6,7 +6,7 @@ var PromiseA = require('bluebird'); | |||||||
| var crypto = require('crypto'); | var crypto = require('crypto'); | ||||||
| var tls = require('tls'); | var tls = require('tls'); | ||||||
| var path = require('path'); | var path = require('path'); | ||||||
| var leCore = require('./backends/letiny-core'); | var leCore = require('./lib/letiny-core'); | ||||||
| 
 | 
 | ||||||
| var LE = module.exports; | var LE = module.exports; | ||||||
| LE.productionServerUrl = leCore.productionServerUrl; | LE.productionServerUrl = leCore.productionServerUrl; | ||||||
|  | |||||||
| @ -114,6 +114,7 @@ function getAccount(accountId, args, handlers) { | |||||||
|     if (!Object.keys(files).every(function (key) { |     if (!Object.keys(files).every(function (key) { | ||||||
|       return !files[key].error; |       return !files[key].error; | ||||||
|     })) { |     })) { | ||||||
|  |       // TODO log renewal.conf
 | ||||||
|       console.warn("Account '" + accountId + "' was currupt. No big deal (I think?). Creating a new one..."); |       console.warn("Account '" + accountId + "' was currupt. No big deal (I think?). Creating a new one..."); | ||||||
|       return createAccount(args, handlers); |       return createAccount(args, handlers); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user