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
How can i use it with gin ? #63
Comments
Untested, though something like: router := gin.Default()
router.Use(tlsHandler())
l := state.Listener()
l = tls.NewListener(l, &tls.Config{
//use your cert/key
})
router.RunListener(l) https://pkg.go.dev/github.com/gin-gonic/gin#Engine.RunListener |
@jpillora Thank you so much for your quick reply, I tested your code.
I would be even more grateful if there is a complete tutorial using the supervisor |
What’s the supervisor?
…On Wed, 14 Oct 2020 at 1:53 pm YZY ***@***.***> wrote:
@jpillora <https://github.com/jpillora> Thank you so much for your quick
reply, I tested your code.
The following is the correct version
Untested, though something like:
router := gin.Default()router.Use(tlsHandler())l := state.Listenerl = tls.NewListener(l, &tls.Config{
//use your cert/key
})router.RunListener(l)
https://pkg.go.dev/github.com/gin-gonic/gin#Engine.RunListener
I would be even more grateful if there is a complete tutorial using the
supervisor
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE2X42HLVWSN4OXKSXQJGTSKUHA7ANCNFSM4SP73WZQ>
.
|
@jpillora you say "Works with process managers (systemd, upstart, supervisor, etc)" |
Ah it works like any other process managed by supervisor. Overseer allows
your process to do an upgrade-restart, which supervisor doesn’t detect
…On Wed, 14 Oct 2020 at 3:13 pm YZY ***@***.***> wrote:
you say "Works with process managers (systemd, upstart, supervisor, etc)"
supervisord.org
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE2X43OF5RQPPQIQTYDFH3SKUQPRANCNFSM4SP73WZQ>
.
|
I can't find any documentation about using gin and overseer together.Below is my code, how can I use them together?
The text was updated successfully, but these errors were encountered: