Add test env config to strapi-generate-new

This commit adds `test` environment configuration files to
`strapi-generate-new` package
This commit is contained in:
Abel Soares 2016-05-14 11:27:27 +01:00
parent d17d48db0b
commit e5d83558d1
4 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{
"authentication": {
}
}

View File

@ -0,0 +1,17 @@
{
"defaultConnection": "default",
"connections": {
"default": {
"client": "sqlite3",
"debug": false,
"acquireConnectionTimeout": 60000,
"useNullAsDefault": true,
"connection": {
"filename": "./data/db.sqlite"
},
"migrations": {
"tableName": "migrations"
}
}
}
}

View File

@ -0,0 +1,47 @@
{
"session": {
"key": "myApp",
"secretKeys": [
"mySecretKey1"
],
"maxAge": 86400000
},
"csrf": false,
"csp": false,
"p3p": false,
"hsts": {
"maxAge": 31536000,
"includeSubDomains": true
},
"xframe": "SAMEORIGIN",
"xssProtection": false,
"cors": {
"origin": "http://studio.strapi.io",
"expose": [
"WWW-Authenticate",
"Server-Authorization"
],
"maxAge": 31536000,
"credentials": true,
"methods": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
"OPTIONS",
"HEAD"
],
"headers": [
"Content-Type",
"Authorization",
"StudioToken"
]
},
"ssl": false,
"ip": {
"whiteList": [],
"blackList": []
},
"proxy": false
}

View File

@ -0,0 +1,23 @@
{
"host": "localhost",
"port": 1337,
"frontendUrl": "",
"reload": {
"timeout": 1000,
"workers": 0
},
"logger": true,
"parser": {
"encode": "utf-8",
"formLimit": "56kb",
"jsonLimit": "1mb",
"strict": true,
"extendTypes": {
"json": [
"application/x-javascript"
]
}
},
"gzip": true,
"responseTime": true
}