Caddy + docker + caddy-docker-proxy results in FetchError (unable to get local issuer certificate) #2231
github0013
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I am using caddy + docker + caddy-docker-proxy, and I am controlling from a remote laptop.
If you are installing nextjs + caddy and what not at your local machine, things should be working smoothly. But such configuration above, accessing caddy's https from the nextjs container will face some issues.
Major one is
fetch
refusing to connect the caddy https server, like this.I think this is the part where the fetch calls, and I don't see an option to specify anything about certificate.
next-auth/src/client/index.js
Line 321 in 84094b0
To solve it, I did this.
Just letting you guys know how I could solve this issue. Hope this helps someone in the future.
Beta Was this translation helpful? Give feedback.
All reactions