#!/bin/bash
CONF=${1:-caddy}
/opt/caddy/caddy adapt --config /opt/caddy/$CONF.conf --adapter caddyfile > caddy.json