{ # disable admin backend admin off # define the ports by the environment variables http_port {$HTTP_PORT} https_port {$HTTPS_PORT} } https:// { # the tls certificates tls ./config/tls/server.pem ./config/tls/server-key.pem route { # static files file_server /static/* { root {$STATIC_FILES}/.. } # favicon redir /favicon.ico /static/favicon.ico # reverse proxy to the (django) application reverse_proxy localhost:{$DJANGO_PORT} } # use compression encode gzip # logging log { output file {$CADDY_ACCESS_LOG} format filter { wrap console fields { common_log delete request>headers delete request>tls delete user_id delete resp_headers delete } } level INFO } }