mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
14 lines
509 B
JavaScript
14 lines
509 B
JavaScript
var keys;
|
|
if(process.env.LIVE || (process.env.NODE_ENV === 'production')){
|
|
// Keys are provided by environment configs on the server
|
|
} else {
|
|
// Keys are hosted outside this public repo folder, you must provide your own with environment variables.
|
|
if((require('fs').existsSync||require('path').existsSync)(keys = __dirname + '/../../../linux/.ssh/keys-gun.js')){
|
|
keys = require(keys);
|
|
}
|
|
}
|
|
|
|
keys = keys || {};
|
|
keys.bucket = keys.bucket || 'gunjs.herokuapp.com';
|
|
|
|
module.exports = keys || {}; |