first commit backend
This commit is contained in:
35
config/config.development.js
Normal file
35
config/config.development.js
Normal file
@@ -0,0 +1,35 @@
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
// environment
|
||||
env: 'development',
|
||||
locale: 'it',
|
||||
|
||||
title: 'Gancio',
|
||||
description: 'Un calendario dei movimenti piemontesi',
|
||||
|
||||
// base url
|
||||
baseurl: 'http://localhost:8080',
|
||||
apiurl: 'http://localhost:9000/api',
|
||||
|
||||
|
||||
// db configuration
|
||||
db: {
|
||||
'storage': path.join(__dirname, '/../db.sqlite'),
|
||||
'dialect': 'sqlite'
|
||||
},
|
||||
admin: 'lesion@autistici.org',
|
||||
|
||||
// email configuration
|
||||
smtp: {
|
||||
host: 'mail.example.com',
|
||||
secure: true,
|
||||
auth: {
|
||||
user: 'user@example.com',
|
||||
pass: 'password'
|
||||
}
|
||||
},
|
||||
|
||||
// jwt secret
|
||||
secret: 'nonosecretsuper'
|
||||
}
|
||||
30
config/config.production.js
Normal file
30
config/config.production.js
Normal file
@@ -0,0 +1,30 @@
|
||||
module.exports = {
|
||||
// environment
|
||||
env: 'production',
|
||||
locale: 'en',
|
||||
|
||||
title: 'Put here your site name',
|
||||
description: 'A calendar for radical communities',
|
||||
|
||||
// base url
|
||||
baseurl: 'https://example.com',
|
||||
apiurl: 'https://example.com/api',
|
||||
|
||||
// db configuration
|
||||
db: {
|
||||
},
|
||||
admin: 'admin@example.com',
|
||||
|
||||
// email configuration
|
||||
smtp: {
|
||||
host: 'mail.example.com',
|
||||
secure: true,
|
||||
auth: {
|
||||
user: 'admin@example.com',
|
||||
pass: ''
|
||||
}
|
||||
},
|
||||
|
||||
// jwt secret
|
||||
secret: 'randomstringhere'
|
||||
}
|
||||
Reference in New Issue
Block a user