okay sure.
So I added full route53 access to my iam profile.
i ignored the ‘token’ section in the routed3 plugin credentials .
so here is my caddy file config
{
email my-email@gmail.com
storage s3 {
host "my-bucket.s3.eu-west-3.amazonaws.com"
bucket "my-bucket"
access_id "My-access-key"
secret_key "my-access-key"
prefix "ssl"
insecure true
storage_clean_interval 100d
}
debug
on_demand_tls {
ask https://my-domain/domain/verify
interval 2m
burst 5
}
}
http:// {
redir https://{host}{uri}
}
*.my-domain, my-domain {
@www header_regexp www Host ^www\.(.*)$
redir @www https://{re.www.1} 301
tls {
dns route53 {
max_retries 10
aws_profile "laravel"
access_key_id "My-access-key"
secret_access_key "my-access-key"
region "eu-west-3"
}
}
root * /var/www/myfolder/public
encode zstd gzip
file_server
php_fastcgi unix//var/run/php/php8.2-fpm.sock
}
https:// {
@www header_regexp www Host ^www\.(.*)$
redir @www https://{re.www.1} 301
tls {
on_demand
}
root * /var/www/myfolder/public
encode zstd gzip
file_server
php_fastcgi unix//var/run/php/php8.2-fpm.sock
}