Since I am a pilot by trade and not a full-time programmer, I spent hours banging my head against the wall trying to get a self-hosted n8n server up and running. That was the easy part, then the dreaded CORS errors, which led to an nginx reverse proxy, which led to a Let’s Encrypt. I eventually got it all up and running in Docker, but it took (me) long time. Again, go easy, I’m not a programmer ![]()
Once I figured out all the steps and errors that I made along the way, I built a setup script that does it all in about ten minutes from start to finish. It configures and deploys n8n, nginx as a reverse proxy, the Let’s Encrypt certbot (in my case using DNS auth via a Cloudflare API) to get (an automatically renew) the SSL cert for the reverse proxy, PostgreSQL, and lastly PGvector because I’m trying to build an internal RAG for our various aircraft.
I like tinkering and have a few open-source projects on GitHub, so I thought I would share this here as well in case it helps anyone.