1. The problem I’m having:
When I try to deploy caddy and minio with docker compose, I find that the reverse proxy minio cannot work properly
I can ensure that minio is installed correctly.
2. Error messages and/or full log output:
This is rclone.conf
[minio]
type = s3
provider = Minio
access_key_id = b222222222E8PjkW6
secret_access_key = 1TJRQNcGyi1111111mIHP
endpoint = https://minio.x.y
#endpoint = http://ip:9000
acl = private
When I change the endpoint
to ‘http://ip:9000’ it works,
root@host:~# rclone lsd minio:
-1 2025-03-31 12:13:07 -1 test
it does not work for https://minio.x.y
root@host:~# rclone lsd minio:
2025/03/31 12:15:04 ERROR : : error listing: operation error S3: ListBuckets, https response error StatusCode: 403, RequestID: 1831D86EAA6FCFC3, HostID: dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
2025/03/31 12:15:04 NOTICE: Failed to lsd with 2 errors: last error was: operation error S3: ListBuckets, https response error StatusCode: 403, RequestID: 1831D86EAA6FCFC3, HostID: dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
3. Caddy version: 2.9.1
4. How I installed and ran Caddy:
docker compose
System environment:
debian 12
docker-compose.yml:
services:
caddy:
image: caddy
container_name: caddy
restart: always
network_mode: host
volumes:
- /home/caddy/Caddyfile:/etc/caddy/Caddyfile
- /home/caddy:/data
minio:
restart: unless-stopped
container_name: minio
ports:
- 127.0.0.1:9000:9000
- 127.0.0.1:9001:9001
volumes:
- /home/minio/data:/data
- /home/minio/config:/root/.minio
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=1111111111111111111111
- MINIO_COMPRESSION_ENABLE="on"
command: server /data --address ":9000" --console-address ":9001"
image: minio/minio:latest
Caddyfile:
minio.x.y {
reverse_proxy 127.0.0.1:9000
tls 222@gmail.com
}
console.x.y {
reverse_proxy 127.0.0.1:9001
tls 222@gmail.com
}
https://console.x.y can be accessed correctly.
Does anyone know what else needs to be added to this caddyfile?