瀏覽代碼

fix: public access always false if using env var string

NGPixel 7 年之前
父節點
當前提交
e7b6001cf8
共有 1 個文件被更改,包括 4 次插入0 次删除
  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 = {