codegangsta / gin

Live reload utility for Go web servers
MIT License
4.23k stars 317 forks source link

Feature request: Support TLS backends #153

Open mhutter opened 5 years ago

mhutter commented 5 years ago

If the app being served is a HTTPS server, gin cannot connect to it.

Proposal: Add a --tls flag to indicate that the backend is a TLS listener

silgon commented 3 years ago

+1 Has something been done about this in the past year? This seems rather important in order to use HTTP2 push as in the server push example. (I cannot get it to work)

mhutter commented 3 years ago

What I usually do as a workaround in those cases:

silgon commented 3 years ago

Thanks for the answer @mhutter , however, I tried running:

gin run example.go --immediate

However still the same problem. I'm using the command line RunTLS(":3001", "server.crt", "server.key") which works with go run example.go but not with the above command.

silgon commented 3 years ago

I found out about the go watch. I'm working with that for now, seems to work at least for simple files. Not sure that it could work for bigger things =)