1. The problem I’m having:
I am running Laravel Sail for my local dev, and it works fine with
app.localhost {
#tls internal
reverse_proxy laravel.test
file_server
encode gzip
}
#what should I add here to link Caddy to MinIO?
I now have a MinIO container on the same docker network
and would like to have 2 buckets livewire-tmp
and videos
What would this caddyfile look like?
#docker-compose.yml
laravel.test:
image: 'sail-8.4/app'
ports:
- '8888:80'
minio:
image: 'minio/minio:latest'
ports:
- '9999:9000'
- '8900:8900'
#laravel .env
MINIO_ACCESS_KEY=pass
MINIO_SECRET_KEY=pass
MINIO_REGION=us-east-1
MINIO_BUCKET=videos
#endpoint appears to be working, tested in laravel tinker
MINIO_ENDPOINT=http://minio:9999
#this I don't know if it's right or not
MINIO_URL=http://minio.localhost/videos
#laravel config/filesystems
'disks' => [
'minio' => [
'driver' => 's3',
'endpoint' => env('MINIO_ENDPOINT'),
'key' => env('MINIO_ACCESS_KEY'),
'secret' => env('MINIO_SECRET_KEY'),
'bucket' => env('MINIO_BUCKET'),
'region' => env('MINIO_REGION'),
'url' => env('MINIO_URL'),
'use_path_style_endpoint' => true,
],
My goal is to upload and deliver files from Caddy, without touching laravel for file delivery.