To replace the default RFS cache with an S3 image cache, configure the S3 connection directly in WEB-INF/config/opencms.properties. A typical configuration is:
storage.imagecache.type=s3
storage.imagecache.endpoint=https://storage.example.com
storage.imagecache.bucket=opencms-imagecache
storage.imagecache.accessKey=YOUR_ACCESS_KEY
storage.imagecache.secretKey=YOUR_SECRET_KEY
storage.imagecache.pathStyle=true
storage.imagecache.region=aws-global
The type, endpoint, bucket, accessKey and secretKey properties are required.
The configured access and secret keys can be provided by OpenCms' secret provider.
pathStyle controls whether the bucket name is part of the request path instead of the host name. It defaults to true. Set it to false if the storage service requires virtual-hosted-style access.
Set the region property if required by your S3 service.