module.exports = ({ env }) => ({
defaultConnection: 'default',
connections: {
default: {
connector: 'mongoose',
settings: {
host: env('DATABASE_HOST', '127.0.0.1'),
srv: env.bool('DATABASE_SRV', false),
port: env.int('DATABASE_PORT', 27017),
database: env('DATABASE_NAME', 'hiv'),
username: env('DATABASE_USERNAME', ''),
password: env('DATABASE_PASSWORD', ''),
},
options: {
authenticationDatabase: env('AUTHENTICATION_DATABASE', null),
ssl: env.bool('DATABASE_SSL', false),
},
},
},
});
HOST=0.0.0.0
PORT=1337
URL = 'site.ru'
API_URL = 'api.site.ru'
EMAIL = 'no-reply@site.ru'
API_USER_ID = '...'
API_SECRET = '...'
TOKEN_STORAGE = '/tokens/'
NODE_ENV=production