https://twill.io logo
<@479379745856028705> <@385142776674910238> Good e...
# ❓questions
s
@ifox @Harings Rob Good evening guys, tell me if there are any settings that you need to pay attention to in order to receive a link to the image via https? Faced with the problem that all links are formed on the site via https and images are displayed via http? The dev ops specialist said that the server is configured correctly, but he made a note about the images that two links are coming (http and https). I am using a local driver. APP_URL is registered via https.
i
Hi @savchuk.ivan which image service are you using? Glide?
s
For now I store everything locally.
Hello 🙂
i
that's for storage, but when generating image urls, Twill uses a service, local or glide. Local just renders the original file without any transformations applied. Glide is a dynamic image rendering service that applies cropping and resizing through url parameters.
does your image path start with /img?
ok thanks so that's the local service behavior. This is where the url is generated: https://github.com/area17/twill/blob/ff6c7ef8233a81626553042e475f900ae0416f68/src/Services/MediaLibrary/Local.php#L81
Did you change the disk configuration?
s
Not yet, I understand that I need to somehow prescribe it differently, but I still don’t understand how. I sit and read)
Registered in a disk locale I receive so. somewhere else, as I understand it, the setting should be on the formation of a link. I look further
Thank you so much for giving me the idea 🙂 I registered public. And then corrected the url and it all worked.
i
awesome