3 ms·
Great article. I'm curious how people are deploying Go apps in production. Is it nginx+some app server? (In other words what's to Go equivalent of nginx+unico
by callmeed 13y ago
Great article.
I'm curious how people are deploying Go apps in production. Is it nginx+some app server?
(In other words what's to Go equivalent of nginx+unicorn or apache+passenger in the RoR world?)
- patrickg 13y agoI have an apache + reverse proxy for go servers running and listening on their specific port.
- jamra 13y agoI use nginx + upstart to keep my golang process up and running. When I asked about it on the golang irc channel, people said that they just use golang without a reverse proxy. I personally like the ssl termination that nginx offers. I believe that nginx is a better way to load balance and I like not having to run my code as root, which using a reverse proxy provides you.
- justincormack 12y agoYou can use capabilities to allow binding to port 80 without being root.
- jamra 12y agoI've heard that before but never got around to trying it out. I should really take a look. Thanks.
- vertex-four 12y agoAnother alternative is authbind[0], which doesn't have the same drawbacks (i.e. you can use it with scripts, and still set LD_LIBRARY_PATH). [0] http://en.wikipedia.org/wiki/Authbind http://en.wikipedia.org/wiki/Authbind