"URL parameter is not allowed" while accessing avatar URLs
First, sorry for creating an issue for it as it may be related to my poor S3 comprehension, and is very probably the same issue as #84, the difference being everything is (voluntarily) local.
NEXT_PUBLIC_BASE_URL= http://192.168.10.252:3004 # not same host as Garage S3 !
NEXT_PUBLIC_STORAGE_URL=http://192.168.10.254:3900
NEXT_PUBLIC_STORAGE_DOMAIN=192.168.10.254
NEXT_PUBLIC_AVATAR_BUCKET_NAME=kan-avatars
NEXT_PUBLIC_ATTACHMENTS_BUCKET_NAME=kan-pj
When using the above settings for S3 and avatar storage configuration, the avatar images are broken. The generated URL seems to be correct (if i urldecode it, i can access it without issue), but the browser console shows a "400 - 'url' parameter is not allowed"
A workaround i found was to get the dev version from git and modify the remotePatterns variable in apps/web/next.config.js for the http protocol hostname from localhost to my minio server ip and then build the web and migrate docker images
PS. In my case the ip is of a docker network PPS. I didn't test if putting "**" in the hostname works
Having the same Issue
also having this issue
as @Lorsel pointed, the issue here is that http s3 provider in apps/web/next.config.js is hard-coded limited to localhost, making any local IP addresses non useable...
i haven't tried, but as a temporary workaround, you can maybe copy and modify next.config.js to remove limitation, and add it in docker-compose.yml as a read-only "volume"...
Not sure if I'm late to this but the issue is still present. In apps/docs/guides/self-hosting/s3.mdx specifically says to use localtest.me, but as you mention it is hardcoded to only accept localhost. I added localtest.me as a valid url in next.config.js and it works as I suppose is the intended behavior.
As far as I know, this doesn't create any issue, could probably create a pr for this fix.