@formio/appserver 2.15.0 → 2.17.0
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/README.md +2 -0
- package/lib/server.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -70,6 +70,8 @@ This library uses environment variables to configure the configurations required
|
|
|
70
70
|
| JWT_EXPIRE_TIME | no | The number of minutes to expire your JWT token. | 240 |
|
|
71
71
|
| PORTAL_SECRET | no | Provides the ability to connect to the App Server via the Remote Environment Connection within your Developer Portal. | YOUR_SECRET_KEY |
|
|
72
72
|
| PROJECT_CACHE | no | Disables the cache for project resources (such as Project template, Project Settings, and Access Settings). Default "true" | true |
|
|
73
|
+
| PROJECT_TTL | no | How often, in seconds, the project's forms, resources and actions are loaded again, which is how changes made in the portal or deployed to the project reach the App Server. `0` disables refreshing. Default 900 | 900 |
|
|
74
|
+
| TEMPLATE_SYNC | no | When the forms, resources and actions in a module's `template` that the project is missing are installed into it: `boot` once at startup, `refresh` also on every `PROJECT_TTL` refresh, or `off` never. Nothing the project already has is changed. The project remains the source of truth, so use `off` when forms are managed through stage deployments. Default "boot" | boot |
|
|
73
75
|
| MONGO_CONFIG | no | Additional configurations to add to the DB connection string | {} |
|
|
74
76
|
|
|
75
77
|
Enjoy
|
package/lib/server.js
CHANGED
|
@@ -56,6 +56,7 @@ class Server extends appserver_core_1.Server {
|
|
|
56
56
|
},
|
|
57
57
|
project: (0, lodash_1.get)(process.env, 'PROJECT', ''),
|
|
58
58
|
ttl: parseInt((0, lodash_1.get)(process.env, 'PROJECT_TTL', 900).toString(), 10),
|
|
59
|
+
templateSync: (0, lodash_1.get)(process.env, 'TEMPLATE_SYNC', 'boot').toString().toLowerCase(),
|
|
59
60
|
submissionProxy: (0, lodash_1.get)(process.env, 'SUBMISSION_PROXY', '').toString(),
|
|
60
61
|
projects: (0, lodash_1.get)(process.env, 'PROJECTS', '').split(',').filter((p) => !!p),
|
|
61
62
|
maxBodySize: (0, lodash_1.get)(process.env, 'MAX_BODY_SIZE', '100mb')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formio/appserver",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
4
4
|
"description": "A highly performant and extensible Application Server for Form.io Multi-Tenant Deployments.",
|
|
5
5
|
"main": "lib/server.js",
|
|
6
6
|
"types": "lib/server.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"homepage": "https://github.com/formio/appserver#readme",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@formio/appserver-core": "^2.
|
|
37
|
+
"@formio/appserver-core": "^2.17.0",
|
|
38
38
|
"@formio/core": "2.9.0",
|
|
39
39
|
"async": "^3.2.6",
|
|
40
40
|
"bcryptjs": "^3.0.3",
|