Perhaps you could change the global sails.config.connections structure and modify the existing connection. Of course, this will only continue until the application is restarted.
If you want to make it more persistent, but not change the js configuration files, you could save the connection data to localdb (sails to disk?) And re-set the connection properties (read from local db) on the sail lift using config / bootstrap. js
source share