V2: on demand tls ask config

1. My Caddy version (caddy version):

I’m new to caddy, I only get (devel) when running ‘caddy version’

2. How I run Caddy:

I have tried using Caddyfile and json

caddy start
curl localhost:2019/load -X POST -H “Content-Type: application/json” -dcaddy.json

a. System environment:

Ubuntu 18.0.4

3. The problem I’m having:

I am only looking to configure the on_deman tls with an ask url

I am trying to find the documentation for configuring a caddy server that uses auto https with an ask config but cannot find much except for an excerpt of JSON config in the official V2 docs.

It would help a lot if you could provide the Caddyfile and/or JSON config you tried using, as a starting point.

Currently, on-demand TLS is only available via JSON configuration. See v2: on-demand TLS configuration in Caddyfile · Issue #3058 · caddyserver/caddy · GitHub which is a tracking issue for this feature. Caddy v2 is still in beta, so it will be added eventually (almost certainly before v2 goes stable).

Documentation for TLS config in JSON is here: JSON Config Structure - Caddy Documentation, and the documentation specifically for on-demand TLS is here: JSON Config Structure - Caddy Documentation

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.