@reldens/cms 0.30.0 → 0.31.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.
Files changed (2) hide show
  1. package/lib/manager.js +1 -9
  2. package/package.json +2 -2
package/lib/manager.js CHANGED
@@ -236,7 +236,7 @@ class Manager
236
236
  }
237
237
  let baseConfig = {
238
238
  port: this.config.port,
239
- useHttps: this.determineHttpsUsage(),
239
+ useHttps: this.config.host.startsWith('https://'),
240
240
  useHelmet,
241
241
  domainMapping: this.domainMapping || {},
242
242
  defaultDomain: this.defaultDomain,
@@ -257,14 +257,6 @@ class Manager
257
257
  return appServerConfig;
258
258
  }
259
259
 
260
- determineHttpsUsage()
261
- {
262
- if(this.config.publicUrl && this.config.publicUrl.startsWith('https://')){
263
- return true;
264
- }
265
- return this.config.host.startsWith('https://');
266
- }
267
-
268
260
  async initializeCmsAfterInstall(props)
269
261
  {
270
262
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reldens/cms",
3
3
  "scope": "@reldens",
4
- "version": "0.30.0",
4
+ "version": "0.31.0",
5
5
  "description": "Reldens - CMS",
6
6
  "author": "Damian A. Pastorini",
7
7
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "url": "https://github.com/damian-pastorini/reldens-cms/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@reldens/server-utils": "^0.30.0",
36
+ "@reldens/server-utils": "^0.31.0",
37
37
  "@reldens/storage": "^0.72.0",
38
38
  "@reldens/utils": "^0.53.0",
39
39
  "dotenv": "17.2.2",