File: /var/dev/nowruzgan/rest/config/env/production.js
module.exports = {
datastores: {
mysql: {
adapter: 'sails-mysql',
host: 'localhost',
user: 'nowruzgan',
password: 'a74YPN5ECqqPqfaC',
database: 'nowruzgan'
},
},
models: {
migrate: 'safe',
},
blueprints: {
shortcuts: false,
},
security: {
cors: {
allowOrigins: [
'https://nowruzgan.com',
'https://vazhgar.com',
]
},
},
session: {
cookie: {
maxAge: 24 * 60 * 60 * 1000, // 24 hours
},
},
sockets: {
onlyAllowOrigins: [
'https://nowruzgan.com',
'https://vazhgar.com',
],
},
log: {
level: 'debug'
},
http: {
cache: 365.25 * 24 * 60 * 60 * 1000, // One year
},
port: 1351,
custom: {
baseUrl: 'https://nowruzgan.com',
internalEmailAddress: 'support@iranshahrpedia.com',
profileCacheTTL: 600,
auth0: {
callback: 'https://nowruzgan.com/admin#token=__TOKEN__',
logout: 'https://nowruzgan.com/admin',
},
id: {
callback: 'https://nowruzgan.com/admin#token=__TOKEN__',
logout: 'https://nowruzgan.com/admin',
},
repo: {
path: '/space/image-server/repository/nw',
temp: '/tmp',
cantaloupe: {
endpoint: 'http://127.0.0.1:8182',
username: 'babak',
password: 'alimardan2'
}
}
},
};