Custom SSL certificate for localhost #2615
Replies: 4 comments 5 replies
-
Nice article explaining how to use mkcert just in case someone wants to try : ) |
Beta Was this translation helpful? Give feedback.
-
Not an answer to your question, but as an alternative approach, you could set up a passport local strategy to substitute for Facebook in local dev. In the same fashion that you stub out email integrations in dev. |
Beta Was this translation helpful? Give feedback.
-
To clarify: you are worried that your custom server setup would not fly on a hosting service such as Vercel, is that correct? If yes, and if the only reason you are having a custom server is so that you can deploy SSL, would it be useful to know that Vercel would automatically issue SSL certificates for your domain/s? https://vercel.com/blog/automatic-ssl-with-vercel-lets-encrypt |
Beta Was this translation helpful? Give feedback.
-
Instead of modifying |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm Andres. I'm really enjoying learning Blitz. As an exercise I'm trying to use Passport.js + Blitz as explained in docs to connect my Instagram Account. Just for fun.
The thing is for doing that Facebook only allow
httpS
domains in the Oauth Flow dance.I'm using mkcert which is amaizing.
This will give you the SSL certificate
![image](https://user-images.githubusercontent.com/49499/127650038-33eefef6-8891-4d17-a48c-c92dfdbadf4c.png)
And then I do a Custom Blitz server as explained in the doc
https://blitzjs.com/docs/custom-server
Sooo, my question
All this works nice. I can do Ouath Flow with Facebook. With Blitz + Passport + SSL + localhost.
But I was wondering how hard would be to allow default blitz config to pass something like this:
I fear that having a custom server will get me in troubles if I want to use lambdas with something like Vercel. I would rather prefer not to have to define a
server.ts
file as explained to have SSLBeta Was this translation helpful? Give feedback.
All reactions