pyro-api icon indicating copy to clipboard operation
pyro-api copied to clipboard

Add a proxy url for the s3 media fetch

Open Nastaliss opened this issue 2 years ago • 2 comments

We should add a configuration to allow using a proxy instead of the real s3 url. The s3 url is sometimes flagged as malicious in some entreprise networks.

  • [x] #287
  • [x] #293
  • [x] #294

Nastaliss avatar Oct 18 '23 18:10 Nastaliss

This is now deployed to the production platform. image Please keep in mind that to trigger a refresh of the alerts you need to empty your session storage and refresh the page

Nastaliss avatar Oct 18 '23 19:10 Nastaliss

The configuration is passed as an env variable S3_PROXY_URL to the api. It replaces the original url with this url when passed. By passing an empty string or no value the original behavior is kept. The url format is the same as the S3_URL, you must include the protocol (https:// / http://) and end with a /.

Nastaliss avatar Oct 18 '23 19:10 Nastaliss

To the best of my understanding, this is already taken care of :)

frgfm avatar Aug 24 '24 09:08 frgfm