Browse Source

fix: public access always false if using env var string

NGPixel 7 years ago
parent
commit
e7b6001cf8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      server/libs/config.js

+ 4 - 0
server/libs/config.js

@@ -45,6 +45,10 @@ module.exports = (confPaths) => {
     appconfig.port = process.env.PORT || 80
   }
 
+  // Convert booleans
+
+  appconfig.public = (appconfig.public === true || _.toLower(appconfig.public) === 'true')
+
   // List authentication strategies
 
   appconfig.authStrategies = {