miolo 3.0.0-beta.145 → 3.0.0-beta.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create/create.mjs +0 -1
- package/package.json +6 -2
- package/template/.editorconfig +18 -0
- package/template/.env +99 -0
- package/template/.env.production +92 -0
- package/template/.gitignore +42 -0
- package/template/package.json +17 -0
package/bin/create/create.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "miolo",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.147",
|
|
4
4
|
"description": "all-in-one koa-based server",
|
|
5
5
|
"author": "Donato Lorenzo <donato@afialapis.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -27,7 +27,11 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"bin",
|
|
29
29
|
"src",
|
|
30
|
-
"template"
|
|
30
|
+
"template",
|
|
31
|
+
"template/.env",
|
|
32
|
+
"template/.env.production",
|
|
33
|
+
"template/.gitignore",
|
|
34
|
+
"template/.editorconfig"
|
|
31
35
|
],
|
|
32
36
|
"scripts": {
|
|
33
37
|
"lint": "npx xeira lint ./src",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
charset = utf-8
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
end_of_line = lf
|
|
6
|
+
insert_final_newline = true
|
|
7
|
+
|
|
8
|
+
[*.{js,jsx}]
|
|
9
|
+
indent_style = space
|
|
10
|
+
indent_size = 2
|
|
11
|
+
|
|
12
|
+
[*.{css,scss}]
|
|
13
|
+
indent_style = space
|
|
14
|
+
indent_size = 2
|
|
15
|
+
|
|
16
|
+
[{package.json,.travis.yml}]
|
|
17
|
+
indent_style = space
|
|
18
|
+
indent_size = 2
|
package/template/.env
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
#
|
|
2
|
+
# miolo
|
|
3
|
+
#
|
|
4
|
+
MIOLO_NAME=miolo-sample
|
|
5
|
+
MIOLO_INTRE_LOCALE=es
|
|
6
|
+
|
|
7
|
+
#
|
|
8
|
+
# HTTP
|
|
9
|
+
#
|
|
10
|
+
MIOLO_PORT=8001
|
|
11
|
+
MIOLO_HOSTNAME=localhost
|
|
12
|
+
MIOLO_HOSTNAME_DOCKER=0.0.0.0
|
|
13
|
+
MIOLO_HTTP_CORS=simple # true | false | simple. For {options}, use JS
|
|
14
|
+
MIOLO_HTTP_PROXY=false # true | false. For {options}, use JS
|
|
15
|
+
|
|
16
|
+
MIOLO_RATELIMIT_WHITELIST_IPS=172.22.0.1
|
|
17
|
+
MIOLO_REQUEST_LAZY=2 # seconds to consider lazy a request
|
|
18
|
+
MIOLO_REQUEST_SLOW=4 # seconds to consider slow a request
|
|
19
|
+
MIOLO_GEOIP_ENABLED=true
|
|
20
|
+
MIOLO_GEOIP_LOCAL_IPS=127.0.0.1,172.22.0.1,172.19.0.1
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
# Session
|
|
25
|
+
#
|
|
26
|
+
MIOLO_SESSION_SALT=33dd1f72-02a7-4d56-9d17-3aafacd1e0ca
|
|
27
|
+
MIOLO_SESSION_SECRET=bfc5abbd-38dc-4d1f-bfcc-35771567083c
|
|
28
|
+
MIOLO_SESSION_MAX_AGE=864000000
|
|
29
|
+
MIOLO_SESSION_SECURE=false
|
|
30
|
+
MIOLO_SESSION_RENEW=true
|
|
31
|
+
MIOLO_SESSION_SAME_SITE=strict # lax | strict
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
#
|
|
35
|
+
# Database
|
|
36
|
+
#
|
|
37
|
+
MIOLO_DB_DIALECT=postgres
|
|
38
|
+
MIOLO_DB_DATABASE=miolo
|
|
39
|
+
MIOLO_DB_USER=postgres
|
|
40
|
+
MIOLO_DB_PASSWORD=postgres
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
#
|
|
44
|
+
# Logging
|
|
45
|
+
#
|
|
46
|
+
MIOLO_LOG_LEVEL=info
|
|
47
|
+
MIOLO_LOG_CONSOLE_ENABLED=true
|
|
48
|
+
MIOLO_LOG_FILE_ENABLED=false
|
|
49
|
+
MIOLO_LOG_MAIL_ENABLED=false
|
|
50
|
+
#MIOLO_LOG_MAIL_LEVEL=warn
|
|
51
|
+
MIOLO_LOG_MAIL_FROM=miolo-sample@afialapis.com
|
|
52
|
+
MIOLO_LOG_MAIL_TO=devel@afialapis.com
|
|
53
|
+
|
|
54
|
+
#
|
|
55
|
+
# Mailer
|
|
56
|
+
#
|
|
57
|
+
MIOLO_MAILER_SILENT=true
|
|
58
|
+
MIOLO_MAILER_HOST=mail.afialapis.com
|
|
59
|
+
MIOLO_MAILER_PORT=25
|
|
60
|
+
MIOLO_MAILER_FROM=miolo-sample@afialapis.com
|
|
61
|
+
MIOLO_MAILER_TO=devel@afialapis.com
|
|
62
|
+
|
|
63
|
+
# MIOLO_MAILER_AUTH_METHOD=PLAIN # PLAIN / LOGIN
|
|
64
|
+
# # If LOGIN, you need to specify:
|
|
65
|
+
# MIOLO_MAILER_SMTP_USER=noreply@mail.com
|
|
66
|
+
# MIOLO_MAILER_SMTP_PASS=****
|
|
67
|
+
|
|
68
|
+
#
|
|
69
|
+
# Cache
|
|
70
|
+
#
|
|
71
|
+
MIOLO_REDIS_HOSTNAME=127.0.0.1
|
|
72
|
+
MIOLO_REDIS_HOSTNAME_DOCKER=redis
|
|
73
|
+
MIOLO_REDIS_PORT=6379
|
|
74
|
+
|
|
75
|
+
MIOLO_CACHE_TYPE=redis
|
|
76
|
+
MIOLO_CACHE_VERSION=4
|
|
77
|
+
MIOLO_CACHE_CALUSTRA_VERSION=4
|
|
78
|
+
MIOLO_CACHE_CALUSTRA_TTL=86400000
|
|
79
|
+
MIOLO_CACHE_SESSION_VERSION=4
|
|
80
|
+
MIOLO_CACHE_SESSION_TTL=864000000
|
|
81
|
+
|
|
82
|
+
#
|
|
83
|
+
# Others
|
|
84
|
+
#
|
|
85
|
+
MIOLO_DOTENVX_DEBUG=false
|
|
86
|
+
|
|
87
|
+
#
|
|
88
|
+
# Build
|
|
89
|
+
#
|
|
90
|
+
MIOLO_BUILD_HTML_FILE=./src/cli/index.html
|
|
91
|
+
MIOLO_BUILD_CLIENT_ENTRY=./src/cli/entry-cli.jsx
|
|
92
|
+
MIOLO_BUILD_CLIENT_DEST=./build/cli
|
|
93
|
+
MIOLO_BUILD_CLIENT_SUFFIX=iife.bundle.min
|
|
94
|
+
MIOLO_BUILD_SERVER_SSR_ENTRY=./src/server/miolo/ssr/entry-server.jsx
|
|
95
|
+
MIOLO_BUILD_SERVER_ENTRY=./src/server/server.mjs
|
|
96
|
+
MIOLO_BUILD_SERVER_DEST=./build/server
|
|
97
|
+
MIOLO_DEV_CONFIG_ENTRY=./src/server/miolo/index.mjs
|
|
98
|
+
MIOLO_DEV_WATCH_ENABLED=true
|
|
99
|
+
MIOLO_DEV_WATCH_DIRS=./src/server
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# General
|
|
2
|
+
#
|
|
3
|
+
MIOLO_NAME=miolo-sample
|
|
4
|
+
MIOLO_INTRE_LOCALE=es
|
|
5
|
+
|
|
6
|
+
#
|
|
7
|
+
# HTTP
|
|
8
|
+
#
|
|
9
|
+
MIOLO_PORT=8001
|
|
10
|
+
MIOLO_HOSTNAME=localhost
|
|
11
|
+
MIOLO_HOSTNAME_DOCKER=0.0.0.0
|
|
12
|
+
MIOLO_HTTP_CORS=simple # true | false | simple. For {options}, use JS
|
|
13
|
+
MIOLO_HTTP_PROXY=false # true | false. For {options}, use JS
|
|
14
|
+
|
|
15
|
+
MIOLO_RATELIMIT_WHITELIST_IPS=172.22.0.1
|
|
16
|
+
MIOLO_REQUEST_LAZY=2 # seconds to consider lazy a request
|
|
17
|
+
MIOLO_REQUEST_SLOW=4 # seconds to consider slow a request
|
|
18
|
+
MIOLO_GEOIP_ENABLED=true
|
|
19
|
+
MIOLO_GEOIP_LOCAL_IPS=127.0.0.1,172.22.0.1,172.19.0.1
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
# Session
|
|
23
|
+
#
|
|
24
|
+
MIOLO_SESSION_SALT=00000000-0000-0000-0000-000000000000
|
|
25
|
+
MIOLO_SESSION_SECRET=00000000-0000-0000-0000-000000000000
|
|
26
|
+
MIOLO_SESSION_MAX_AGE=864000000
|
|
27
|
+
MIOLO_SESSION_SECURE=false
|
|
28
|
+
MIOLO_SESSION_RENEW=true
|
|
29
|
+
MIOLO_SESSION_SAME_SITE=lax # lax | strict
|
|
30
|
+
#
|
|
31
|
+
# Database
|
|
32
|
+
#
|
|
33
|
+
MIOLO_DB_DATABASE=miolo
|
|
34
|
+
MIOLO_DB_USER=postgres
|
|
35
|
+
MIOLO_DB_PASSWORD=postgres
|
|
36
|
+
|
|
37
|
+
#
|
|
38
|
+
# Logging
|
|
39
|
+
#
|
|
40
|
+
MIOLO_LOG_LEVEL=info
|
|
41
|
+
MIOLO_LOG_CONSOLE_ENABLED=false
|
|
42
|
+
MIOLO_LOG_FILE_ENABLED=true
|
|
43
|
+
MIOLO_LOG_MAIL_ENABLED=true
|
|
44
|
+
MIOLO_LOG_MAIL_LEVEL=error
|
|
45
|
+
MIOLO_LOG_MAIL_FROM=miolo@afialapis.com
|
|
46
|
+
MIOLO_LOG_MAIL_TO=devel@afialapis.com
|
|
47
|
+
|
|
48
|
+
#
|
|
49
|
+
# Mailer
|
|
50
|
+
#
|
|
51
|
+
MIOLO_MAILER_SILENT=false
|
|
52
|
+
MIOLO_MAILER_HOST=mail.afialapis.com
|
|
53
|
+
MIOLO_MAILER_FROM=miolo@afialapis.com
|
|
54
|
+
MIOLO_MAILER_TO=devel@afialapis.com
|
|
55
|
+
|
|
56
|
+
MIOLO_MAILER_PORT=465
|
|
57
|
+
MIOLO_MAILER_AUTH_METHOD=LOGIN
|
|
58
|
+
MIOLO_MAILER_SMTP_USER=<user>
|
|
59
|
+
MIOLO_MAILER_SMTP_PASS=<pass>
|
|
60
|
+
|
|
61
|
+
#
|
|
62
|
+
# Cache
|
|
63
|
+
#
|
|
64
|
+
MIOLO_REDIS_HOSTNAME=127.0.0.1
|
|
65
|
+
MIOLO_REDIS_HOSTNAME_DOCKER=redis
|
|
66
|
+
MIOLO_REDIS_PORT=6379
|
|
67
|
+
|
|
68
|
+
MIOLO_CACHE_TYPE=redis
|
|
69
|
+
MIOLO_CACHE_VERSION=1
|
|
70
|
+
MIOLO_CACHE_CALUSTRA_VERSION=1
|
|
71
|
+
MIOLO_CACHE_CALUSTRA_TTL=86400000
|
|
72
|
+
MIOLO_CACHE_SESSION_VERSION=1
|
|
73
|
+
MIOLO_CACHE_SESSION_TTL=864000000
|
|
74
|
+
|
|
75
|
+
#
|
|
76
|
+
# Others
|
|
77
|
+
#
|
|
78
|
+
MIOLO_DOTENVX_DEBUG=false
|
|
79
|
+
|
|
80
|
+
#
|
|
81
|
+
# Build
|
|
82
|
+
#
|
|
83
|
+
MIOLO_BUILD_HTML_FILE=./src/cli/index.html
|
|
84
|
+
MIOLO_BUILD_CLIENT_ENTRY=./src/cli/entry-cli.jsx
|
|
85
|
+
MIOLO_BUILD_CLIENT_DEST=./build/cli
|
|
86
|
+
MIOLO_BUILD_CLIENT_SUFFIX=iife.bundle.min
|
|
87
|
+
MIOLO_BUILD_SERVER_SSR_ENTRY=./src/server/miolo/ssr/entry-server.jsx
|
|
88
|
+
MIOLO_BUILD_SERVER_ENTRY=./src/server/server.mjs
|
|
89
|
+
MIOLO_BUILD_SERVER_DEST=./build/server
|
|
90
|
+
MIOLO_DEV_CONFIG_ENTRY=./src/server/miolo/index.mjs
|
|
91
|
+
MIOLO_DEV_WATCH_ENABLED=true
|
|
92
|
+
MIOLO_DEV_WATCH_DIRS=./src/server
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
### SublimeText ###
|
|
2
|
+
#*.sublime-workspace
|
|
3
|
+
|
|
4
|
+
### OSX ###
|
|
5
|
+
#.DS_Store
|
|
6
|
+
#.AppleDouble
|
|
7
|
+
#.LSOverride
|
|
8
|
+
#Icon
|
|
9
|
+
|
|
10
|
+
# Thumbnails
|
|
11
|
+
#._*
|
|
12
|
+
|
|
13
|
+
# Files that might appear on external disk
|
|
14
|
+
#.Spotlight-V100
|
|
15
|
+
#.Trashes
|
|
16
|
+
|
|
17
|
+
### Windows ###
|
|
18
|
+
Thumbs.db
|
|
19
|
+
ehthumbs.db
|
|
20
|
+
Desktop.ini
|
|
21
|
+
$RECYCLE.BIN/
|
|
22
|
+
|
|
23
|
+
# App specific
|
|
24
|
+
|
|
25
|
+
node_modules
|
|
26
|
+
.tmp
|
|
27
|
+
npm-debug.log*
|
|
28
|
+
.pyc
|
|
29
|
+
*.ods#
|
|
30
|
+
*.xls#
|
|
31
|
+
*.xlsx#
|
|
32
|
+
*.odt#
|
|
33
|
+
*.doc#
|
|
34
|
+
*.docx#
|
|
35
|
+
*_pycache_
|
|
36
|
+
.yalc
|
|
37
|
+
.vscode/
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
.editorconfig
|
|
41
|
+
.env
|
|
42
|
+
.env.*
|
package/template/package.json
CHANGED
|
@@ -62,5 +62,22 @@
|
|
|
62
62
|
"miolo": "file:../miolo",
|
|
63
63
|
"sass-embedded": "^1.97.3",
|
|
64
64
|
"xeira": "^2.0.0-beta.10"
|
|
65
|
+
},
|
|
66
|
+
"overrides": {
|
|
67
|
+
"@babel/runtime": "^7.28.6",
|
|
68
|
+
"ajv": "6.12.6",
|
|
69
|
+
"body-parser": "^2.2.2",
|
|
70
|
+
"cookie": "^1.1.1",
|
|
71
|
+
"express": "^5.2.1",
|
|
72
|
+
"jsonwebtoken": "^9.0.3",
|
|
73
|
+
"lodash": "^4.17.23",
|
|
74
|
+
"moment": "^2.30.1",
|
|
75
|
+
"on-headers": "^1.1.0",
|
|
76
|
+
"path-to-regexp": "^8.3.0",
|
|
77
|
+
"qs": "^6.14.1",
|
|
78
|
+
"send": "^1.2.1",
|
|
79
|
+
"serve-static": "^2.2.1",
|
|
80
|
+
"tar": "^7.5.7",
|
|
81
|
+
"ws": "^8.19.0"
|
|
65
82
|
}
|
|
66
83
|
}
|