mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 15:53:33 +00:00 
			
		
		
		
	Adds support to run processes as a user/group, defined
with PUID and PGID environment variables - Detects if image is run with a user in docker command and fails if so - Adds s6 prepare scripts for adding a 'npmuser' - Split up and refactor the s6 prepare scripts - Runs nginx and backend node as 'npmuser' - Changes ownership of files required at startup
This commit is contained in:
		| @@ -46,6 +46,8 @@ const internalCertificate = { | ||||
|  | ||||
| 			const cmd = certbotCommand + ' renew --non-interactive --quiet ' + | ||||
| 				'--config "' + letsencryptConfig + '" ' + | ||||
| 				'--work-dir "/tmp/letsencrypt-lib" ' + | ||||
| 				'--logs-dir "/tmp/letsencrypt-log" ' + | ||||
| 				'--preferred-challenges "dns,http" ' + | ||||
| 				'--disable-hook-validation ' + | ||||
| 				(letsencryptStaging ? '--staging' : ''); | ||||
| @@ -833,6 +835,8 @@ const internalCertificate = { | ||||
|  | ||||
| 		const cmd = certbotCommand + ' certonly ' + | ||||
| 			'--config "' + letsencryptConfig + '" ' + | ||||
| 			'--work-dir "/tmp/letsencrypt-lib" ' + | ||||
| 			'--logs-dir "/tmp/letsencrypt-log" ' + | ||||
| 			'--cert-name "npm-' + certificate.id + '" ' + | ||||
| 			'--agree-tos ' + | ||||
| 			'--authenticator webroot ' + | ||||
| @@ -878,6 +882,8 @@ const internalCertificate = { | ||||
|  | ||||
| 		let mainCmd = certbotCommand + ' certonly ' + | ||||
| 			'--config "' + letsencryptConfig + '" ' + | ||||
| 			'--work-dir "/tmp/letsencrypt-lib" ' + | ||||
| 			'--logs-dir "/tmp/letsencrypt-log" ' + | ||||
| 			'--cert-name "npm-' + certificate.id + '" ' + | ||||
| 			'--agree-tos ' + | ||||
| 			'--email "' + certificate.meta.letsencrypt_email + '" ' + | ||||
|   | ||||
		Reference in New Issue
	
	Block a user