Closed max-mapper closed 8 years ago
I use a wildcart ssl on my own domain to easily get ssl across all services. it costs a bit of money (100-200 usd per year) but its extremely easy to setup / use.
im going to move this issue to datproject/projects
what we do now
We currently use https://github.com/mafintosh/taco-nginx to deploy node processes on Ubuntu servers. This is for deploying node services at subdomains, e.g.
signalhub.dathub.org
. We point*.dathub.org
anddathub.org
DNS at a server, and then use taco-nginx to deploy new subdomains on that server.Our typical setup right now is to have a file called
services.sh
in the home folder of the server that has entries like this:We currently use the psy process monitor. This shell script is idempotent and starts any non-started processes when executed.
psy ls
lists running processes.Executing
taco-nginx --name dats node cli.js
creates this file:It also reloads nginx and runs the process (
node cli.js
)This is currently useful for dynamic services, but lacks two features:
what we want to do
Building on the above workflow, ideally youd be able to do npm run deploy and it would build the static site, push it up to a server and deploy it as e.g. docs.myserver.org using SSL from certbot/letcencrypt. One issue we have with github pages is you cant do custom domains with SSL. We can do that via cloudflare insecurely, or use surge.sh premium. Or roll our own :D If we can come up with a single workflow that works for static + dynamic processes it would probably be worth it roll our own.
Maybe we can add certbot integration to taco-nginx and a static file serving mode (e.g. just serve this folder full of html). Another fun thing is maybe we can use dat as the deployment tool :D