bjb568 / DevDoodle

https://devdoodle.net
9 stars 0 forks source link

DevDoodle logo

Build Status

DevDoodle is a programmers' network where you can do tutorials, ask questions, and create and share your own programs! We're only in beta now, so some features are incomplete.

You can visit here.

Before submitting a bug, try hard-reloading.

Files

Running Locally

Apparently node processes don't need to run as root if you do this first (on Linux):

sudo apt-get install libcap2-bin
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node

To make Safari/OS X like the cert (and allow connecting with sockets), add the certs to Keychain Access and set it to Always Trust.

For reference, to update Node:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

npm:

sudo npm update -g npm

dependancies:

npm update

Certs

DevDoodle uses Let's Encrypt certs. These certs last 90 days. HPKP is cached for 30 days. Since there should always be 2 available valid certs, a new one must be generated every 45 days. The certs should be switched 31 days after the new one is generated.

2016-08-13 — 2016-11-11 Last cert (created)
2016-09-27 — 2016-12-26 Current cert (created)
2016-11-11 — 2017-02-09 Next cert
2016-12-26 — 2017-03-26 Next next cert

Certificate renewal is done with:

certbot certonly --cert-path ...

Certs are in /etc/letsencrypt/live.

To generate the hash for HPKP:

openssl x509 -in my-certificate.crt -pubkey -noout | openssl rsa -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64