# general
{
    #admin off

    on_demand_tls {
        ask      "http://localhost/check"
    }
}


# START HOSTNAME DOMAIN #
example.net {
    reverse_proxy localhost:2087
}

http://example.net {
    reverse_proxy localhost:2087
}
# END HOSTNAME DOMAIN #

# START WEBMAIL DOMAIN #
webmail.example.net {
    reverse_proxy localhost:8080
}
# END WEBMAIL DOMAIN #

# START PHPMYADMIN DOMAIN #
example.net:2053 {
    reverse_proxy localhost:8888
}
# END PHPMYADMIN DOMAIN #


# import /check route
import /etc/hitechcloud/caddy/check.conf

# import domain_log
import /etc/hitechcloud/caddy/templates/domain_log

# import wp-manager rules
import /etc/hitechcloud/caddy/templates/wp.rules

# import all sites
import /etc/hitechcloud/caddy/domains/*
