V
V
v- death2015-08-14 11:51:44
Nginx
v- death, 2015-08-14 11:51:44

Is it necessary to proxy requests to go?

Good afternoon.
I found information on the Internet in 2013 that, they say, in the prod it is not necessary to launch the binary directly to the network (they say it is not safe), that it is necessary to proxy through nginx, then there will be fewer holes.
How is the security of the built-in package for creating a server in go at the moment?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2015-08-14
@vGrabko99

Vladimir is standing.
On the same nginx-e, you can easily configure the return of statics, request caching, it will be easier to configure and you will not need to change the application code to add new goodies.
Regarding security, nginx can help you if you want to hide the code from external services (hacking a server with nginx will not affect a server with a backend), or, for example, if you are attacked by all sorts of Chinese, you can easily connect the geoIP module and set up filtering by country (if the Chinese are present on this resource, then no offense :) )
I will add that in addition to security, installing nginx will help in the future if you want to change the application architecture (add several backends, set up balancing, etc.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question