Skip to content

feat: Adds logic to enable secure URLs in the imgix provider#205

Closed
danny-pearson wants to merge 1 commit into
nuxt:devfrom
danny-pearson:feat/imgix-secure-url
Closed

feat: Adds logic to enable secure URLs in the imgix provider#205
danny-pearson wants to merge 1 commit into
nuxt:devfrom
danny-pearson:feat/imgix-secure-url

Conversation

@danny-pearson
Copy link
Copy Markdown

This enables the Imgix provider to sign the image url using the token provided when 'Secure URLs' is enabled in the source. The token can be passed in as an option to the provider in nuxt.config...

Screenshot 2021-03-27 at 19 07 35

This also lets you use images that are served from a web proxy source without having to sign them manually or rely on another dependency :)

@atinux atinux assigned atinux and unassigned atinux Mar 29, 2021
@pi0
Copy link
Copy Markdown
Member

pi0 commented Apr 6, 2021

Hi @danny-pearson thanks for the PR. I think we need a mechanism like a runtime config to pass the token. Since options are directly added to runtime/providers which is bundled as a part of client-code (this means someone can easily gain token to sign their URLs)

@pi0 pi0 added the pending label Apr 6, 2021
@danny-pearson
Copy link
Copy Markdown
Author

@pi0 Aye I'm not ganna lie that completely slipped my mind baha :/

I'll have a look at getting that sorted this weekend :)

@pi0
Copy link
Copy Markdown
Member

pi0 commented Apr 10, 2021

We may use new provider setup hooks to inject token to nuxt.options.privateRuntimeConfig (it won't work for client-generated URLs)

@pi0 pi0 mentioned this pull request May 17, 2021
@pi0
Copy link
Copy Markdown
Member

pi0 commented May 17, 2021

I've moved this topic to #276. Thanks for the initiative @danny-pearson 🙏

@pi0 pi0 closed this May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants