Show HN: Nginx Common Useful Configuration
github.com
github.com
I ended up just adding another domain name and configuring it from scratch to point to a matrix client folder, and then running the certbot expand.. and now it's working on a different domain.
Guides like this one posted are much more help trying understand the whole chain of things as opposed to a bunch of random pseduo answers via stackover and the like.
I love nginx but it's hard to recommend it when other solutions exist that require zero fiddling and zero maintenance to get HTTPS working.
Finally, I sure don't miss feeling the urge to bookmark config helper articles like this one- nginx is challenging to configure well! Endless hidden options, and for whatever reason I found their documentation less helpful than HAProxy's.
If you are forced to continue using it, you have my sympathy.
* I've created some rather exotic LB setups as times to meet requirements.
There's always OpenResty[1] which is a kind of "batteries included" version of nginx - I use it in preference to nginx these days because I do a lot of experiments with, e.g., the Lua, Redis, Postgres support OR has.