mirror of
https://github.com/strapi/strapi.git
synced 2025-08-31 04:03:50 +00:00
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:
parent
d17d48db0b
commit
e5d83558d1
@ -0,0 +1,5 @@
|
||||
{
|
||||
"authentication": {
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"defaultConnection": "default",
|
||||
"connections": {
|
||||
"default": {
|
||||
"client": "sqlite3",
|
||||
"debug": false,
|
||||
"acquireConnectionTimeout": 60000,
|
||||
"useNullAsDefault": true,
|
||||
"connection": {
|
||||
"filename": "./data/db.sqlite"
|
||||
},
|
||||
"migrations": {
|
||||
"tableName": "migrations"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
}
|
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user