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.
ws:
or wss:
) connectionsSecret
inside DevDoodle's parent directory and add the files: devdoodle.net.key
, devdoodle.net.crt
, and devdoodle.net-chain.crt
, which you'll have to self-sign unless you have the real certs.If you want to be able to use GitHub logins, create a file in Secret
called github-auth.json
and add the auth information from GitHub like this:
{
"clientID": "00000000000000000000",
"clientSecret": "0000000000000000000000000000000000000000"
}
npm install
config.js
to your likingnode server
(by default runs on ports 80 and 443 so requires sudo
)https://localhost/status/
(or https://localhost:1337/status/
for a custom port)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
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