mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-03 17:13:33 +00:00 
			
		
		
		
	Adds error stack information in prod environment for certificates
This commit is contained in:
		@@ -66,7 +66,7 @@ app.use(function (err, req, res, next) {
 | 
			
		||||
		}
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	if (process.env.NODE_ENV === 'development') {
 | 
			
		||||
	if (process.env.NODE_ENV === 'development' || (req.baseUrl + req.path).includes('nginx/certificates')) {
 | 
			
		||||
		payload.debug = {
 | 
			
		||||
			stack:    typeof err.stack !== 'undefined' && err.stack ? err.stack.split('\n') : null,
 | 
			
		||||
			previous: err.previous
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user