I want to jump on the v2 release. How will I go to migrate this v1 Caddyfile to v2?
zt.netbros.com {
log /var/log/caddy/zt.netbros.net.log {
rotate_size 1
rotate_age 7
rotate_keep 1
}
header / {
Strict-Transport-Security "max-age=31536000"
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
-Server
}
tls {
key_type rsa4096
protocols tls1.2
must_staple
}
proxy / http://127.0.0.1:3030 {
transparent
}
}
www.moorthy.me {
gzip
header / {
Strict-Transport-Security "max-age=31536000"
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
-Server
}
tls {
key_type rsa4096
protocols tls1.2
must_staple
}
redir https://moorthy.me{uri}
}
moorthy.me {
root /var/www/moorthy.me
gzip
log /var/log/caddy/moorthy.me.log {
rotate_size 1
rotate_age 7
rotate_keep 1
}
header / {
Strict-Transport-Security "max-age=31536000"
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
-Server
}
tls {
key_type rsa4096
protocols tls1.2
must_staple
}
}
TIA!