adding initial strapi app
This commit is contained in:
5
.ebextensions/01-strapi-assets-s3.config
Normal file
5
.ebextensions/01-strapi-assets-s3.config
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Resources:
|
||||||
|
ELBExampleBucket:
|
||||||
|
Type: "AWS::S3::Bucket"
|
||||||
|
Properties:
|
||||||
|
BucketName: elb-example-bucket
|
||||||
5
.ebextensions/02-node-js-settings.config
Normal file
5
.ebextensions/02-node-js-settings.config
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
options_settings:
|
||||||
|
aws:elasticbeanstalk:container:nodejs:
|
||||||
|
NODE_COMMAND: "NODE_ENV=production yarn start"
|
||||||
|
ProxyServer: nginx
|
||||||
|
GzipCompression: true
|
||||||
9
.ebextensions/03-general-options.config
Normal file
9
.ebextensions/03-general-options.config
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
options_settings:
|
||||||
|
aws:elasticbeanstalk:environment:
|
||||||
|
EnvironmentType: SingleInstance
|
||||||
|
aws:rds:dbinstance:
|
||||||
|
DBEngine: postgres
|
||||||
|
DBInstanceClass: "db.t2.micro"
|
||||||
|
DBAllocatedStorage: 5
|
||||||
|
aws:ec2:instances:
|
||||||
|
InstanceTypes: "t2.micro"
|
||||||
16
.editorconfig
Normal file
16
.editorconfig
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[{package.json,*.yml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
3
.eslintignore
Normal file
3
.eslintignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.cache
|
||||||
|
build
|
||||||
|
**/node_modules/**
|
||||||
27
.eslintrc
Normal file
27
.eslintrc
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"parser": "babel-eslint",
|
||||||
|
"extends": "eslint:recommended",
|
||||||
|
"env": {
|
||||||
|
"commonjs": true,
|
||||||
|
"es6": true,
|
||||||
|
"node": true,
|
||||||
|
"browser": false
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"experimentalObjectRestSpread": true,
|
||||||
|
"jsx": false
|
||||||
|
},
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"strapi": true
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"indent": ["error", 2, { "SwitchCase": 1 }],
|
||||||
|
"linebreak-style": ["error", "unix"],
|
||||||
|
"no-console": 0,
|
||||||
|
"quotes": ["error", "single"],
|
||||||
|
"semi": ["error", "always"]
|
||||||
|
}
|
||||||
|
}
|
||||||
117
.gitignore
vendored
Normal file
117
.gitignore
vendored
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
############################
|
||||||
|
# OS X
|
||||||
|
############################
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
.AppleDouble
|
||||||
|
.LSOverride
|
||||||
|
Icon
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
._*
|
||||||
|
|
||||||
|
|
||||||
|
############################
|
||||||
|
# Linux
|
||||||
|
############################
|
||||||
|
|
||||||
|
*~
|
||||||
|
|
||||||
|
|
||||||
|
############################
|
||||||
|
# Windows
|
||||||
|
############################
|
||||||
|
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
Desktop.ini
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
|
||||||
|
############################
|
||||||
|
# Packages
|
||||||
|
############################
|
||||||
|
|
||||||
|
*.7z
|
||||||
|
*.csv
|
||||||
|
*.dat
|
||||||
|
*.dmg
|
||||||
|
*.gz
|
||||||
|
*.iso
|
||||||
|
*.jar
|
||||||
|
*.rar
|
||||||
|
*.tar
|
||||||
|
*.zip
|
||||||
|
*.com
|
||||||
|
*.class
|
||||||
|
*.dll
|
||||||
|
*.exe
|
||||||
|
*.o
|
||||||
|
*.seed
|
||||||
|
*.so
|
||||||
|
*.swo
|
||||||
|
*.swp
|
||||||
|
*.swn
|
||||||
|
*.swm
|
||||||
|
*.out
|
||||||
|
*.pid
|
||||||
|
|
||||||
|
|
||||||
|
############################
|
||||||
|
# Logs and databases
|
||||||
|
############################
|
||||||
|
|
||||||
|
.tmp
|
||||||
|
*.log
|
||||||
|
*.sql
|
||||||
|
*.sqlite
|
||||||
|
*.sqlite3
|
||||||
|
|
||||||
|
|
||||||
|
############################
|
||||||
|
# Misc.
|
||||||
|
############################
|
||||||
|
|
||||||
|
*#
|
||||||
|
ssl
|
||||||
|
.idea
|
||||||
|
nbproject
|
||||||
|
public/uploads/*
|
||||||
|
!public/uploads/.gitkeep
|
||||||
|
|
||||||
|
############################
|
||||||
|
# Node.js
|
||||||
|
############################
|
||||||
|
|
||||||
|
lib-cov
|
||||||
|
lcov.info
|
||||||
|
pids
|
||||||
|
logs
|
||||||
|
results
|
||||||
|
node_modules
|
||||||
|
.node_history
|
||||||
|
|
||||||
|
|
||||||
|
############################
|
||||||
|
# Tests
|
||||||
|
############################
|
||||||
|
|
||||||
|
testApp
|
||||||
|
coverage
|
||||||
|
|
||||||
|
############################
|
||||||
|
# Strapi
|
||||||
|
############################
|
||||||
|
|
||||||
|
exports
|
||||||
|
.cache
|
||||||
|
build
|
||||||
|
|
||||||
|
# Elastic Beanstalk Files
|
||||||
|
.elasticbeanstalk/*
|
||||||
|
!.elasticbeanstalk/*.cfg.yml
|
||||||
|
!.elasticbeanstalk/*.global.yml
|
||||||
1
.vscode/settings.json
vendored
Normal file
1
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
# strapi-elb
|
# Strapi application
|
||||||
|
|
||||||
Elasticbeanstalk Strapi
|
A quick description of your strapi application
|
||||||
|
|||||||
0
api/.gitkeep
Normal file
0
api/.gitkeep
Normal file
10
config/application.json
Normal file
10
config/application.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"favicon": {
|
||||||
|
"path": "favicon.ico",
|
||||||
|
"maxAge": 86400000
|
||||||
|
},
|
||||||
|
"public": {
|
||||||
|
"path": "./public",
|
||||||
|
"maxAge": 60000
|
||||||
|
}
|
||||||
|
}
|
||||||
3
config/custom.json
Normal file
3
config/custom.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"myCustomConfiguration": "This configuration is accessible through strapi.config.myCustomConfiguration"
|
||||||
|
}
|
||||||
3
config/environments/development/custom.json
Normal file
3
config/environments/development/custom.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"myCustomConfiguration": "This configuration is accessible through strapi.config.environments.development.myCustomConfiguration"
|
||||||
|
}
|
||||||
15
config/environments/development/database.json
Normal file
15
config/environments/development/database.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"defaultConnection": "default",
|
||||||
|
"connections": {
|
||||||
|
"default": {
|
||||||
|
"connector": "bookshelf",
|
||||||
|
"settings": {
|
||||||
|
"client": "sqlite",
|
||||||
|
"filename": ".tmp/data.db"
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"useNullAsDefault": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
23
config/environments/development/request.json
Normal file
23
config/environments/development/request.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"session": {
|
||||||
|
"enabled": true,
|
||||||
|
"client": "cookie",
|
||||||
|
"key": "strapi.sid",
|
||||||
|
"prefix": "strapi:sess:",
|
||||||
|
"secretKeys": ["mySecretKey1", "mySecretKey2"],
|
||||||
|
"httpOnly": true,
|
||||||
|
"maxAge": 86400000,
|
||||||
|
"overwrite": true,
|
||||||
|
"signed": false,
|
||||||
|
"rolling": false
|
||||||
|
},
|
||||||
|
"logger": {
|
||||||
|
"level": "debug",
|
||||||
|
"exposeInContext": true,
|
||||||
|
"requests": true
|
||||||
|
},
|
||||||
|
"parser": {
|
||||||
|
"enabled": true,
|
||||||
|
"multipart": true
|
||||||
|
}
|
||||||
|
}
|
||||||
12
config/environments/development/response.json
Normal file
12
config/environments/development/response.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"gzip": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"responseTime": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"poweredBy": {
|
||||||
|
"enabled": true,
|
||||||
|
"value": "Strapi <strapi.io>"
|
||||||
|
}
|
||||||
|
}
|
||||||
31
config/environments/development/security.json
Normal file
31
config/environments/development/security.json
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"csp": {
|
||||||
|
"enabled": true,
|
||||||
|
"policy": ["block-all-mixed-content"]
|
||||||
|
},
|
||||||
|
"p3p": {
|
||||||
|
"enabled": false,
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"hsts": {
|
||||||
|
"enabled": true,
|
||||||
|
"maxAge": 31536000,
|
||||||
|
"includeSubDomains": true
|
||||||
|
},
|
||||||
|
"xframe": {
|
||||||
|
"enabled": true,
|
||||||
|
"value": "SAMEORIGIN"
|
||||||
|
},
|
||||||
|
"xss": {
|
||||||
|
"enabled": true,
|
||||||
|
"mode": "block"
|
||||||
|
},
|
||||||
|
"cors": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"ip": {
|
||||||
|
"enabled": false,
|
||||||
|
"whiteList": [],
|
||||||
|
"blackList": []
|
||||||
|
}
|
||||||
|
}
|
||||||
13
config/environments/development/server.json
Normal file
13
config/environments/development/server.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"host": "${process.env.HOST || '0.0.0.0'}",
|
||||||
|
"port": "${process.env.PORT || 1337}",
|
||||||
|
"proxy": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"cron": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"admin": {
|
||||||
|
"autoOpen": false
|
||||||
|
}
|
||||||
|
}
|
||||||
3
config/environments/production/custom.json
Normal file
3
config/environments/production/custom.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"myCustomConfiguration": "This configuration is accessible through strapi.config.environments.production.myCustomConfiguration"
|
||||||
|
}
|
||||||
17
config/environments/production/database.json
Normal file
17
config/environments/production/database.json
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"defaultConnection": "default",
|
||||||
|
"connections": {
|
||||||
|
"default": {
|
||||||
|
"connector": "bookshelf",
|
||||||
|
"settings": {
|
||||||
|
"client": "sqlite",
|
||||||
|
"host": "${process.env.DATABASE_HOST || '127.0.0.1'}",
|
||||||
|
"port": "${process.env.DATABASE_PORT || 27017}",
|
||||||
|
"database": "${process.env.DATABASE_NAME || 'strapi'}",
|
||||||
|
"username": "${process.env.DATABASE_USERNAME || ''}",
|
||||||
|
"password": "${process.env.DATABASE_PASSWORD || ''}"
|
||||||
|
},
|
||||||
|
"options": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
23
config/environments/production/request.json
Normal file
23
config/environments/production/request.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"session": {
|
||||||
|
"enabled": true,
|
||||||
|
"client": "cookie",
|
||||||
|
"key": "strapi.sid",
|
||||||
|
"prefix": "strapi:sess:",
|
||||||
|
"secretKeys": ["mySecretKey1", "mySecretKey2"],
|
||||||
|
"httpOnly": true,
|
||||||
|
"maxAge": 86400000,
|
||||||
|
"overwrite": true,
|
||||||
|
"signed": false,
|
||||||
|
"rolling": false
|
||||||
|
},
|
||||||
|
"logger": {
|
||||||
|
"level": "info",
|
||||||
|
"exposeInContext": true,
|
||||||
|
"requests": false
|
||||||
|
},
|
||||||
|
"parser": {
|
||||||
|
"enabled": true,
|
||||||
|
"multipart": true
|
||||||
|
}
|
||||||
|
}
|
||||||
12
config/environments/production/response.json
Normal file
12
config/environments/production/response.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"gzip": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"responseTime": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"poweredBy": {
|
||||||
|
"enabled": true,
|
||||||
|
"value": "Strapi <strapi.io>"
|
||||||
|
}
|
||||||
|
}
|
||||||
31
config/environments/production/security.json
Normal file
31
config/environments/production/security.json
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"csp": {
|
||||||
|
"enabled": true,
|
||||||
|
"policy": ["block-all-mixed-content"]
|
||||||
|
},
|
||||||
|
"p3p": {
|
||||||
|
"enabled": true,
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"hsts": {
|
||||||
|
"enabled": true,
|
||||||
|
"maxAge": 31536000,
|
||||||
|
"includeSubDomains": true
|
||||||
|
},
|
||||||
|
"xframe": {
|
||||||
|
"enabled": true,
|
||||||
|
"value": "SAMEORIGIN"
|
||||||
|
},
|
||||||
|
"xss": {
|
||||||
|
"enabled": true,
|
||||||
|
"mode": "block"
|
||||||
|
},
|
||||||
|
"cors": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"ip": {
|
||||||
|
"enabled": false,
|
||||||
|
"whiteList": [],
|
||||||
|
"blackList": []
|
||||||
|
}
|
||||||
|
}
|
||||||
14
config/environments/production/server.json
Normal file
14
config/environments/production/server.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"host": "${process.env.HOST || '0.0.0.0'}",
|
||||||
|
"port": "${process.env.PORT || 1337}",
|
||||||
|
"production": true,
|
||||||
|
"proxy": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"cron": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"admin": {
|
||||||
|
"autoOpen": false
|
||||||
|
}
|
||||||
|
}
|
||||||
3
config/environments/staging/custom.json
Normal file
3
config/environments/staging/custom.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"myCustomConfiguration": "This configuration is accessible through strapi.config.environments.staging.myCustomConfiguration"
|
||||||
|
}
|
||||||
17
config/environments/staging/database.json
Normal file
17
config/environments/staging/database.json
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"defaultConnection": "default",
|
||||||
|
"connections": {
|
||||||
|
"default": {
|
||||||
|
"connector": "bookshelf",
|
||||||
|
"settings": {
|
||||||
|
"client": "sqlite",
|
||||||
|
"host": "${process.env.DATABASE_HOST || '127.0.0.1'}",
|
||||||
|
"port": "${process.env.DATABASE_PORT || 27017}",
|
||||||
|
"database": "${process.env.DATABASE_NAME || 'strapi'}",
|
||||||
|
"username": "${process.env.DATABASE_USERNAME || ''}",
|
||||||
|
"password": "${process.env.DATABASE_PASSWORD || ''}"
|
||||||
|
},
|
||||||
|
"options": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
23
config/environments/staging/request.json
Normal file
23
config/environments/staging/request.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"session": {
|
||||||
|
"enabled": true,
|
||||||
|
"client": "cookie",
|
||||||
|
"key": "strapi.sid",
|
||||||
|
"prefix": "strapi:sess:",
|
||||||
|
"secretKeys": ["mySecretKey1", "mySecretKey2"],
|
||||||
|
"httpOnly": true,
|
||||||
|
"maxAge": 86400000,
|
||||||
|
"overwrite": true,
|
||||||
|
"signed": false,
|
||||||
|
"rolling": false
|
||||||
|
},
|
||||||
|
"logger": {
|
||||||
|
"level": "info",
|
||||||
|
"exposeInContext": true,
|
||||||
|
"requests": false
|
||||||
|
},
|
||||||
|
"parser": {
|
||||||
|
"enabled": true,
|
||||||
|
"multipart": true
|
||||||
|
}
|
||||||
|
}
|
||||||
12
config/environments/staging/response.json
Normal file
12
config/environments/staging/response.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"gzip": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"responseTime": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"poweredBy": {
|
||||||
|
"enabled": true,
|
||||||
|
"value": "Strapi <strapi.io>"
|
||||||
|
}
|
||||||
|
}
|
||||||
31
config/environments/staging/security.json
Normal file
31
config/environments/staging/security.json
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"csp": {
|
||||||
|
"enabled": true,
|
||||||
|
"policy": ["block-all-mixed-content"]
|
||||||
|
},
|
||||||
|
"p3p": {
|
||||||
|
"enabled": true,
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"hsts": {
|
||||||
|
"enabled": true,
|
||||||
|
"maxAge": 31536000,
|
||||||
|
"includeSubDomains": true
|
||||||
|
},
|
||||||
|
"xframe": {
|
||||||
|
"enabled": true,
|
||||||
|
"value": "SAMEORIGIN"
|
||||||
|
},
|
||||||
|
"xss": {
|
||||||
|
"enabled": true,
|
||||||
|
"mode": "block"
|
||||||
|
},
|
||||||
|
"cors": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"ip": {
|
||||||
|
"enabled": false,
|
||||||
|
"whiteList": [],
|
||||||
|
"blackList": []
|
||||||
|
}
|
||||||
|
}
|
||||||
14
config/environments/staging/server.json
Normal file
14
config/environments/staging/server.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"host": "${process.env.HOST || '0.0.0.0'}",
|
||||||
|
"port": "${process.env.PORT || 1337}",
|
||||||
|
"production": true,
|
||||||
|
"proxy": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"cron": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"admin": {
|
||||||
|
"autoOpen": false
|
||||||
|
}
|
||||||
|
}
|
||||||
13
config/functions/bootstrap.js
vendored
Normal file
13
config/functions/bootstrap.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An asynchronous bootstrap function that runs before
|
||||||
|
* your application gets started.
|
||||||
|
*
|
||||||
|
* This gives you an opportunity to set up your data model,
|
||||||
|
* run jobs, or perform some special logic.
|
||||||
|
*
|
||||||
|
* See more details here: https://strapi.io/documentation/3.0.0-beta.x/concepts/configurations.html#bootstrap
|
||||||
|
*/
|
||||||
|
|
||||||
|
module.exports = () => {};
|
||||||
21
config/functions/cron.js
Normal file
21
config/functions/cron.js
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cron config that gives you an opportunity
|
||||||
|
* to run scheduled jobs.
|
||||||
|
*
|
||||||
|
* The cron format consists of:
|
||||||
|
* [SECOND (optional)] [MINUTE] [HOUR] [DAY OF MONTH] [MONTH OF YEAR] [DAY OF WEEK]
|
||||||
|
*
|
||||||
|
* See more details here: https://strapi.io/documentation/3.0.0-beta.x/concepts/configurations.html#cron-tasks
|
||||||
|
*/
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
/**
|
||||||
|
* Simple example.
|
||||||
|
* Every monday at 1am.
|
||||||
|
*/
|
||||||
|
// '0 1 * * 1': () => {
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
};
|
||||||
5
config/functions/responses/404.js
Normal file
5
config/functions/responses/404.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = async (/* ctx */) => {
|
||||||
|
// return ctx.notFound('My custom message 404');
|
||||||
|
};
|
||||||
10
config/hook.json
Normal file
10
config/hook.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"timeout": 3000,
|
||||||
|
"load": {
|
||||||
|
"before": [],
|
||||||
|
"order": [
|
||||||
|
"Define the hooks' load order by putting their names in this array in the right order"
|
||||||
|
],
|
||||||
|
"after": []
|
||||||
|
}
|
||||||
|
}
|
||||||
13
config/language.json
Normal file
13
config/language.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"enabled": true,
|
||||||
|
"defaultLocale": "en_us",
|
||||||
|
"modes": [
|
||||||
|
"query",
|
||||||
|
"subdomain",
|
||||||
|
"cookie",
|
||||||
|
"header",
|
||||||
|
"url",
|
||||||
|
"tld"
|
||||||
|
],
|
||||||
|
"cookieName": "locale"
|
||||||
|
}
|
||||||
3
config/locales/cs_cz.json
Normal file
3
config/locales/cs_cz.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"welcome": "Vítejte"
|
||||||
|
}
|
||||||
3
config/locales/de_de.json
Normal file
3
config/locales/de_de.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"welcome": "Willkommen"
|
||||||
|
}
|
||||||
3
config/locales/en_us.json
Normal file
3
config/locales/en_us.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"welcome": "Welcome"
|
||||||
|
}
|
||||||
3
config/locales/es_es.json
Normal file
3
config/locales/es_es.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"welcome": "Bienvenido"
|
||||||
|
}
|
||||||
3
config/locales/fr_fr.json
Normal file
3
config/locales/fr_fr.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"welcome": "Bienvenue"
|
||||||
|
}
|
||||||
3
config/locales/it_it.json
Normal file
3
config/locales/it_it.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"welcome": "Benvenuto"
|
||||||
|
}
|
||||||
3
config/locales/ja_jp.json
Normal file
3
config/locales/ja_jp.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"welcome": "ようこそ"
|
||||||
|
}
|
||||||
4
config/locales/ru_ru.json
Normal file
4
config/locales/ru_ru.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"welcome": "Добро пожаловать"
|
||||||
|
}
|
||||||
|
|
||||||
3
config/locales/tr_tr.json
Normal file
3
config/locales/tr_tr.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"welcome": "Hoşgeldin"
|
||||||
|
}
|
||||||
19
config/middleware.json
Normal file
19
config/middleware.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"timeout": 100,
|
||||||
|
"load": {
|
||||||
|
"before": [
|
||||||
|
"responseTime",
|
||||||
|
"logger",
|
||||||
|
"cors",
|
||||||
|
"responses",
|
||||||
|
"gzip"
|
||||||
|
],
|
||||||
|
"order": [
|
||||||
|
"Define the middlewares' load order by putting their name in this array is the right order"
|
||||||
|
],
|
||||||
|
"after": [
|
||||||
|
"parser",
|
||||||
|
"router"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
0
extensions/.gitkeep
Normal file
0
extensions/.gitkeep
Normal file
3
extensions/users-permissions/config/jwt.json
Normal file
3
extensions/users-permissions/config/jwt.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"jwtSecret": "92a7a585-8098-43d3-ac66-98d5014ccfc0"
|
||||||
|
}
|
||||||
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
37
package.json
Normal file
37
package.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"name": "my-project",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.1.0",
|
||||||
|
"description": "A Strapi application",
|
||||||
|
"scripts": {
|
||||||
|
"develop": "strapi develop",
|
||||||
|
"start": "strapi start",
|
||||||
|
"build": "strapi build",
|
||||||
|
"strapi": "strapi"
|
||||||
|
},
|
||||||
|
"devDependencies": {},
|
||||||
|
"dependencies": {
|
||||||
|
"strapi": "3.0.0-beta.20",
|
||||||
|
"strapi-admin": "3.0.0-beta.20",
|
||||||
|
"strapi-utils": "3.0.0-beta.20",
|
||||||
|
"strapi-plugin-content-type-builder": "3.0.0-beta.20",
|
||||||
|
"strapi-plugin-content-manager": "3.0.0-beta.20",
|
||||||
|
"strapi-plugin-users-permissions": "3.0.0-beta.20",
|
||||||
|
"strapi-plugin-email": "3.0.0-beta.20",
|
||||||
|
"strapi-plugin-upload": "3.0.0-beta.20",
|
||||||
|
"strapi-connector-bookshelf": "3.0.0-beta.20",
|
||||||
|
"knex": "<0.20.0",
|
||||||
|
"sqlite3": "latest"
|
||||||
|
},
|
||||||
|
"author": {
|
||||||
|
"name": "A Strapi developer"
|
||||||
|
},
|
||||||
|
"strapi": {
|
||||||
|
"uuid": "f62c2712-766e-4962-bf78-79aa3be3d6da"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10.0.0",
|
||||||
|
"npm": ">=6.0.0"
|
||||||
|
},
|
||||||
|
"license": "MIT"
|
||||||
|
}
|
||||||
3
public/robots.txt
Normal file
3
public/robots.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# To prevent search engines from seeing the site altogether, uncomment the next two lines:
|
||||||
|
# User-Agent: *
|
||||||
|
# Disallow: /
|
||||||
0
public/uploads/.gitkeep
Normal file
0
public/uploads/.gitkeep
Normal file
Reference in New Issue
Block a user