If you have needs beyond what Caddy offers, you setup a reverse proxy to Nginx. Let’s look at an example where you would use Nginx for caching. I also added a separate block, in case you want to pass reverse proxy it back to Caddy again.
You may wonder, wouldn’t it be simpler to just run Nginx in that case? Maybe, maybe not. It all depends on your needs.
In the example below I have a WordPress configuration where you could easily switch between passing the request to Nginx and passing it straight to PHP. You would simply change with_nginx
to without_nginx
. It also shows how you could support for purging URLs for the nginx cache, without exposing the purge URLs beyond access for localhost.
Here are some other posts you may like
Update: The referral program is coming to an end, Febuary 1st. To qualify for 6 months of free supercharging, use a referral code before this date at the purchase of a Tesla Model 3, S or X. https://twitter.com/elonmusk/status/1085771520058679297 Tesla certainly does things differently. One thing that really puts this into…
Electric power companies, in general, are pretty much the same. Tibber however, is unlike any electricity company I had seen before. They try to utilise the data we get from smart devices, which they also sell, to save electricity, money and the environment, as well as improving comfort. It’s a…
TL;DR While using Summon via the app, pressing any button on the key fob will stop the car faster due to less latency. The Summon feature that comes with AutoPilot equipped Tesla's is pretty great when you need to park in a tight stop. It allows the car to park itself…