Zen
3 years ago
7 changed files with 350 additions and 10 deletions
@ -0,0 +1,31 @@
|
||||
export default { |
||||
bitcoind: { |
||||
network: 'mainnet' |
||||
}, |
||||
bitcoinAverage: { |
||||
pub: '', |
||||
secret: '' |
||||
}, |
||||
sqlite3: { |
||||
//file: '$HOME/.ao/database.sqlite3' |
||||
file: 'SQLITE_DATABASE' |
||||
}, |
||||
clightning: { |
||||
//dir: '$HOME/.lightning/bitcoin' |
||||
dir: 'CLIGHTNING_DIR' |
||||
}, |
||||
tor: { |
||||
//hostname: '$TORHOSTNAME' |
||||
hostname: 'TOR_HOSTNAME' |
||||
}, |
||||
memes: { |
||||
//dir: '$HOME/.ao/memes' |
||||
dir: 'MEMES_DIR' |
||||
}, |
||||
jitsi: { |
||||
domain: 'meet.dctrl.ca' |
||||
}, |
||||
socketUrl: 'http://localhost:8003' // development |
||||
// socketUrl: null // production |
||||
} |
||||
|
@ -0,0 +1,17 @@
|
||||
server { |
||||
listen 80 default_server; |
||||
listen [::]:80 default_server; |
||||
|
||||
server_name SERVER_NAME; |
||||
root FILE_ROOT; |
||||
index index.html; |
||||
|
||||
location = /favicon.ico { |
||||
log_not_found off; |
||||
access_log off; |
||||
} |
||||
|
||||
location / { |
||||
proxy_pass http://localhost:8003; |
||||
} |
||||
} |
@ -0,0 +1,7 @@
|
||||
proxy=127.0.0.1:9050 |
||||
txindex=1 |
||||
listen=1 |
||||
bind=127.0.0.1 |
||||
disablewallet=1 |
||||
zmqpubrawblock=tcp://127.0.0.1:28332 |
||||
zmqpubrawtx=tcp://127.0.0.1:28333 |
@ -0,0 +1,6 @@
|
||||
network=bitcoin |
||||
plugin=clboss |
||||
log-level=debug:clboss |
||||
proxy=127.0.0.1:9050 |
||||
bind-addr=127.0.0.1:9735 |
||||
addr=statictor:127.0.0.1:9051 |
@ -0,0 +1,41 @@
|
||||
[Unit] |
||||
Description=Anonymizing overlay network for TCP (multi-instance-master) |
||||
After=network.target |
||||
|
||||
[Service] |
||||
#$USER |
||||
User=USER |
||||
Group=USER |
||||
Type=simple |
||||
#Type=forking |
||||
PrivateTmp=yes |
||||
PermissionsStartOnly=true |
||||
|
||||
ExecStartPre=-/bin/mkdir /var/run/tor |
||||
ExecStartPre=/bin/cp TORRCPATH /var/run/tor |
||||
ExecStartPre=/bin/chmod a-wx,go-rwx /var/run/tor/torrc |
||||
ExecStartPre=/bin/chown -R USER:USER /var/run/tor |
||||
|
||||
ExecStart=/usr/local/bin/tor -f TORRCPATH |
||||
ExecReload=/bin/kill -HUP MAINPID |
||||
|
||||
#LimitNPROC = 2 |
||||
#DeviceAllow = /dev/null rw |
||||
#DeviceAllow = /dev/urandom r |
||||
#DeviceAllow = /dev/random r |
||||
#InaccessibleDirectories = / |
||||
#ReadOnlyDirectories = /etc/usr |
||||
#ReadWriteDirectories = /var/lib/tor /var/log/tor |
||||
|
||||
#PIDFile=/var/run/tor/tor.pid |
||||
KillSignal=SIGINT |
||||
LimitNOFILE=8192 |
||||
PrivateDevices=yes |
||||
|
||||
#Type=oneshot |
||||
#RemainAfterExit=yes |
||||
#ExecStart=/bin/true |
||||
#ExecReload=/bin/true |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
@ -0,0 +1,18 @@
|
||||
const crypto = require('crypto') |
||||
function genNewPrivKey(callback){ |
||||
crypto.generateKeyPair('rsa', { |
||||
modulusLength: 4096, |
||||
publicKeyEncoding: { |
||||
type: 'spki', |
||||
format: 'pem' |
||||
}, |
||||
privateKeyEncoding: { |
||||
type: 'pkcs8', |
||||
format: 'pem', |
||||
} |
||||
}, callback) |
||||
} |
||||
|
||||
genNewPrivKey((err, pubkey, privkey) => { |
||||
console.log(privkey) |
||||
}) |
Loading…
Reference in new issue