mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 09:25:15 +00:00 
			
		
		
		
	- No longer use config npm package - Prefer config from env vars, though still has support for config file - No longer writes a config file for database config - Writes keys to a new file in /data folder - Removes a lot of cruft and improves config understanding
		
			
				
	
	
		
			14 lines
		
	
	
		
			307 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			307 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const db     = require('../db');
 | 
						|
const config = require('../lib/config');
 | 
						|
const Model  = require('objection').Model;
 | 
						|
 | 
						|
Model.knex(db);
 | 
						|
 | 
						|
module.exports = function () {
 | 
						|
	if (config.isSqlite()) {
 | 
						|
		// eslint-disable-next-line
 | 
						|
		return Model.raw("datetime('now','localtime')");
 | 
						|
	}
 | 
						|
	return Model.raw('NOW()');
 | 
						|
};
 |