waterlock / waterlock-local-auth

Local authentication method for waterlock
http://waterlock.ninja/
MIT License
39 stars 83 forks source link

Environment specific settings for waterlock #55

Open yunjiali opened 8 years ago

yunjiali commented 8 years ago

I am trying to set the baseUrl for different environment. Usually, I do it in different environment configuration files under config/env/myenvironment.js. It seems to me that the waterlock-local-auth model will only read the config in waterlock.js:

var configPath = path.normalize(__dirname+'/../../../config/waterlock.js');

Is it possible to set some variables specific to each environment with the current version (0.1.2-rc1)? Or the configPath should merge with environment settings? Many thanks.