photo-manager/sample-config.js

41 lines
864 B
JavaScript

'use strict'
const os = require( 'os' )
, path = require( 'path' )
const PRODUCTION = ( 'PRODUCTION' == process.env.ENV )
|| ( '<DOMAIN.TLD>' == os.hostname() )
module.exports = exports =
{ ENV:
{ PRODUCTION
, IP : process.env.IP
|| ( PRODUCTION && '<IP.4.ADDR>' )
|| '::'
, IP6 : process.env.IP6
|| ( PRODUCTION && '<IP:6:ADDR>' )
|| '::'
, PORT : process.env.PORT || 8080
, SSLPORT : process.env.SSLPORT || 4443
, HOST : '<DOMAIN.TLD>'
}
, Paths:
{ imgGlobal : 'https://<PHOTOS.URL>'
, imgLocal : '~/photos/'
, imgFTP : '~/ftp/'
}
, SQL:
{ BaseURL : 'http://<DB-API.URL>'
, auth :
{ user : 'user'
, pass : 'pass'
}
}
, Accounts :
[ 'account1'
, 'account2'
]
}