mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	Fix LE certs for IPv6 only domains Fixes 394
This commit is contained in:
		| @@ -273,6 +273,7 @@ const internalNginx = { | ||||
| 		return new Promise((resolve, reject) => { | ||||
| 			let template = null; | ||||
| 			let filename = '/data/nginx/temp/letsencrypt_' + certificate.id + '.conf'; | ||||
|  | ||||
| 			try { | ||||
| 				template = fs.readFileSync(__dirname + '/../templates/letsencrypt-request.conf', {encoding: 'utf8'}); | ||||
| 			} catch (err) { | ||||
| @@ -280,6 +281,8 @@ const internalNginx = { | ||||
| 				return; | ||||
| 			} | ||||
|  | ||||
| 			certificate.ipv6 = internalNginx.ipv6Enabled(); | ||||
|  | ||||
| 			renderEngine | ||||
| 				.parseAndRender(template, certificate) | ||||
| 				.then((config_text) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user