Looks like we forgot something during the migration. This should fix it. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			404 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			404 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict'
 | |
| 
 | |
| const fs = require('fs')
 | |
| 
 | |
| function getFile (path) {
 | |
|   if (fs.existsSync(path)) {
 | |
|     return path
 | |
|   }
 | |
|   return undefined
 | |
| }
 | |
| 
 | |
| module.exports = {
 | |
|   sslKeyPath: getFile('/run/secrets/key.pem'),
 | |
|   sslCertPath: getFile('/run/secrets/cert.pem'),
 | |
|   sslCAPath: getFile('/run/secrets/ca.pem') !== undefined ? [getFile('/run/secrets/ca.pem')] : [],
 | |
|   dhParamPath: getFile('/run/secrets/dhparam.pem')
 | |
| }
 |