UNPKG

dnschain

Version:

A blockchain-based DNS + HTTPS server that fixes HTTPS security, and more!

19 lines (14 loc) 372 B
#!/usr/bin/env coffee die = -> console.log "got kill signal!" if server server.shutdown().then -> process.exit 0 else process.exit 0 process.on 'SIGTERM', die process.on 'SIGINT', die process.on 'disconnect', die process.env.DNS_EXAMPLE = '1' console.log "Demo starting..." server = require('../lib/dnschain').createServer() server.start()