Error: adapting config using caddyfile: parsing caddyfile tokens for 'tls': unknown subdirective: session_tickets, at /etc/caddy/sites-enabled/mysite.caddyfile:34
I assume I am either doing this wrong, or session ticket options are not exposed to Caddyfiles, only JSON config. Which is it?
You’re using the JSON config documentation in the Caddyfile, and that’s wrong. They’re distinct formats. The configuration of session tickets isn’t exposed in the Caddyfile. You’ll have to use the JSON format if you want control over these low-level knobs.
Yes, that’s why I said “are not exposed to Caddyfiles, only JSON config”, and I was asking if it was indeed that way. I guess I’ll live with it as I’m not interested in switching to JSON.
It’s also a setting we don’t recommend changing, typically.
7 days is pretty aggressive already IMO, not sure I’ve heard of a test that requires sub-24-hour session tickets! It just means you get a slower connection every day.
Servers MUST NOTuse any value greater than 604800 seconds (7 days). The value of zero indicates that the ticket should be discarded immediately. Clients MUST NOT use tickets for longer than 7 days after issuance, regardless of the ticket_lifetime, and MAY delete tickets earlier based on local policy
So 7 days is the absolute maximum value permitted.