Oh, sorry Matt i forgot add Caddyfile
( when i restart machine first read config from Caddyfile then my app post to /loads json config. )
{
# debug
admin 0.0.0.0:2019
}
(redirect) {
@http {
protocol http
}
redir @http https://{hostport}{uri} 302
}
domain.tdll {
reverse_proxy @notStatic unix//path/to/sockfile.sock
log {
level DEBUG
output file /path/to/caddy.log
format single_field common_log
}
@notStatic {
not {
path /static*
}
}
root * /path/to/root
}