VeryGoodOpenSource / dart_frog

A fast, minimalistic backend framework for Dart 🎯
https://dartfrog.vgv.dev
MIT License
1.87k stars 150 forks source link

feat: How can I run Dart frog with HTTPS support (SSL)? #223

Closed zottel4242 closed 2 years ago

zottel4242 commented 2 years ago

Description

How can I configure dart frog to allow accessing the server via HTTPS? I know that I need to setup the certificate on my server accordingly. However, it seems that I'd also need to adjust how the server is started via shelf? Does dart frog so far support HTTPS connections?

felangel commented 2 years ago

Hi @zottel4242 👋 Thanks for opening an issue!

The easiest way to achieve this is by generating a production build via dart_frog build and deploying to a cloud provider which has a container registry. We currently have deployment guides for:

We are planning to support custom entrypoints (#226) for cases where you need to manually configure the initialization of your app.

Hope that helps!

felangel commented 2 years ago

You can now use a custom entrypoint (#226) to configure the server 👍 https://dartfrog.vgv.dev/docs/advanced/custom_entrypoint

unger1984 commented 1 year ago

How can i run Dev Server with custom ssl cert?