# download caddy. # # wget "https://caddyserver.com/api/download?os=linux&arch=amd64&idempotency=73105841751083" -O caddy; chmod 755 caddy; # # This is the global config for all sites defined in this Caddyfile. { # https://caddyserver.com/docs/caddyfile/options#on-demand-tls on_demand_tls { ask http://localhost:6001/ask-for-on-demand-tls interval 2m burst 5 } log { output file out.log #format json level DEBUG } } https:// { encode gzip tls { on_demand } handle_path /static/* { file_server root * /opt/make_post_sell/env/static } handle /favicon.ico { file_server root * /opt/make_post_sell/env/static } handle { reverse_proxy localhost:6001 } }