first commit backend

This commit is contained in:
lesion
2019-02-26 00:02:42 +01:00
commit 887157f2a9
27 changed files with 819 additions and 0 deletions

View 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'
}

View 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'
}