2
0
Эх сурвалжийг харах

fix: public access always false if using env var string

NGPixel 7 жил өмнө
parent
commit
e7b6001cf8

+ 4 - 0
server/libs/config.js

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