-
-
Notifications
You must be signed in to change notification settings - Fork 575
Add Auto-HTTPS #1113
Comments
In most cases, won't your app sit behind a reverse proxy/load balancer? |
@robbyoconnor In most cases, yes. But prod setups are not all the same, so we should help in those cases too. :) |
I wasn't saying it was a bad idea :)
…On 06/18/2018 12:55 AM, Stanislas Michalak wrote:
@robbyoconnor <https://github.com/robbyoconnor> In most cases, yes.
But prod setups are not all the same, so we should help in those cases
too. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1113 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABaMHeLHE8kVb5nXeG2f0hEDxjaN09Iks5t9zLLgaJpZM4UqpO_>.
|
Trying to think how to approach a PR for this. Wondering if Example client: |
Yeah -- why not make an argument to `buffalo new` --- or even a plugin
maybe?
…On 06/20/2018 12:45 AM, Brian Scott wrote:
Trying to think how to approach a PR for this. Wondering if |buffalo
new| should take an argument to enable Auto TLS?, Any ideas how we
would support this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1113 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABaMAwNDNYOBLNJoK6gP8uchwcktSsWks5t-dN9gaJpZM4UqpO_>.
|
If it was me, :), I would write a package somewhere that has an implementation of the new Server interface and then people can just import it and pass in a version of that server to Start.
…On Jun 20, 2018, 1:30 AM -0400, robbyoconnor ***@***.***>, wrote:
Yeah -- why not make an argument to `buffalo new` --- or even a plugin
maybe?
On 06/20/2018 12:45 AM, Brian Scott wrote:
>
> Trying to think how to approach a PR for this. Wondering if |buffalo
> new| should take an argument to enable Auto TLS?, Any ideas how we
> would support this?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1113 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AABaMAwNDNYOBLNJoK6gP8uchwcktSsWks5t-dN9gaJpZM4UqpO_>.
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Some example code for this if anyone is interested in making it official: https://gist.github.com/hdm/d271eb94a51f7f908ecb9ddc82d2b644 |
Just my 2 cents: CertMagic is a fine option. |
I used https://gist.github.com/hdm/d271eb94a51f7f908ecb9ddc82d2b644 today and it worked perfectly. Big fan of that. Thanks, @hdm ! I'm trying to integrate this into buffalo itself. As far as I can tell, the contents of that gist wouldn't actually need to be generated and put into one's project, it seems like Buffalo could just run this instead of the other code to generate the "servers.Server" if an environment variable or YAML config says so. Thoughts on implementation? My only concern would be this: |
Add support for automatic TLS with LetsEncrypt using custom server.
The text was updated successfully, but these errors were encountered: