gen_nginx_conf: refactor to support multi listen/proto servers

Signed-off-by: Alejandro Mery <amery@geeks.cl>