codegangsta / gin

Live reload utility for Go web servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Support TLS backends

mhutter opened this issue · comments

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

+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)

What I usually do as a workaround in those cases:

  • use the --immediate flag
  • connect to the app directly (bypassing gin alltogether)

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.

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 =)