-
-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a minimal servant-server
project as a template
#420
Comments
Great idea. |
yes, and it would be great to have it either
|
There is already some support in stack-templates now: commercialhaskell/stack-templates@bd7b20e What's nice about that template is that it enables letsencrypt.org by default. Maybe this work could be merged with that template. |
@alexanderkjeldaas interesting. Maybe a bit offtopic. but why choose to put nginx in front of the app instead of letting warp use the letsencrypt cert directly? |
The nginx docker container has an existing sidecar for letsencrypt. I also think it is a bad idea not to have a HTTP load balancer in front of a backend in any production setup, and SSL termination has to happen at the load balancer. |
I've opened this PR: commercialhaskell/stack-templates#52 Once |
I've created an example project here: https://github.com/haskell-servant/example-servant-minimal |
I also created a section about example projects in the documentation: #471. If we merge this, I would consider this issue solved. |
Closing since #471 had been merged. |
This should live in its own github repo and probably include:
src
directory with a minimal API and a server,test
directory with a minimal test-suite using eitherservant-client
orhspec-wai
.The text was updated successfully, but these errors were encountered: