Can I combine multiple SNI when building my JSON config?
Example:
Today, after using adapt on 3 imported Caddyfile:
"tls_connection_policies": [
{
"alpn": [
"h2"
],
"match": {
"sni": [
"domain.hipdadster.com"
]
}
},
{
"alpn": [
"h2"
],
"match": {
"sni": [
"domain.social"
]
}
},
{
"alpn": [
"h2"
],
"match": {
"sni": [
"my.literal.domain"
]
}
}
]
Could this JSON be built like this?
"tls_connection_policies": [
{
"alpn": [
"h2"
],
"match": {
"sni": [
"domain.hipdadster.com",
"domain.social",
"my.literal.domain"
]
}
}
]
It would work much better for my simple automation, and has the benefit of being a touch more human readable. There are a few pieces of the JSON that could probably be cleaned up, but this seems the easiest on first pass.