Giter VIP home page Giter VIP logo

Comments (4)

meadoch1 avatar meadoch1 commented on June 15, 2024 1

With the latest version of Phoenix I did the following in dev.exs to supply a custom CA cert

config :esbuild, 
  cacerts_path: "/path/to/ca/cert/file.pem"

from esbuild.

josevalim avatar josevalim commented on June 15, 2024

@ngeraedts a PR to add ssl customization is welcome. If you prefer, you can also install it manually via the steps here: https://github.com/phoenixframework/esbuild/blob/main/lib/esbuild.ex#L28 - your call!

from esbuild.

winks avatar winks commented on June 15, 2024

Can confirm that the code snippet still works because I ran into the same problem.

There's a slight chicken-and-egg bootstrapping problem though because I also have to add the cacertfile item to this project's config/config.exs or I can't even run mix test, so maybe going a route like HEX_CACERTS_PATH (maybe alternatively, but which takes precedence) makes sense?

from esbuild.

Matt-Hornsby avatar Matt-Hornsby commented on June 15, 2024

Just ran into this issue - with the introduction of tailwind, I had to add a line in for that one as well. So, with the rebuild config line that @meadoch1 described, it looks like this:

config :esbuild,
cacerts_path: "/path/to/ca/cert/file.pem"

config :tailwind,
cacerts_path: "/path/to/ca/cert/file.pem"

In my case, I needed to point to some Netskope MITM certs provided by my company. Im wondering if there are any global settings so it doesn't have to be specified multiple times.

from esbuild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.