gin icon indicating copy to clipboard operation
gin copied to clipboard

Feature request: Support TLS backends

Open mhutter opened this issue 6 years ago • 4 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

mhutter avatar May 14 '19 14:05 mhutter

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

silgon avatar Jan 12 '21 22:01 silgon

What I usually do as a workaround in those cases:

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

mhutter avatar Jan 13 '21 13:01 mhutter

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 avatar Jan 15 '21 14:01 silgon

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

silgon avatar Jan 15 '21 14:01 silgon