mirror of
https://github.com/amark/gun.git
synced 2025-06-15 10:36:40 +00:00
20 lines
558 B
JavaScript
20 lines
558 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 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);
|
|
}
|
|
}
|
|
|
|
module.exports = keys || {};
|
|
/*
|
|
var Gun = require('../shots');
|
|
var gun = Gun({
|
|
peers: 'http://localhost:8888/gun'
|
|
,s3: keys
|
|
});
|
|
|
|
module.exports = gun;
|
|
*/ |