{"id":168,"date":"2026-08-30T19:01:30","date_gmt":"2026-08-30T19:01:30","guid":{"rendered":"https:\/\/usestackpulse.com\/reverse-proxy-nginx-nodejs\/"},"modified":"2026-08-30T19:16:36","modified_gmt":"2026-08-30T19:16:36","slug":"reverse-proxy-nginx-nodejs","status":"publish","type":"page","link":"https:\/\/usestackpulse.com\/es\/reverse-proxy-nginx-nodejs\/","title":{"rendered":"Proxy inverso nginx delante de Node.js: la gu\u00eda completa"},"content":{"rendered":"<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\" style=\"padding-top:32px;padding-right:24px;padding-bottom:8px;padding-left:24px\">\n<p class=\"usp-eyebrow wp-block-paragraph\">Inicio \/ Alojamiento y nube \/ Proxy inverso Node.js<\/p>\n\n\n\n<p class=\"usp-badge wp-block-paragraph\">Alojamiento y servidor<\/p>\n\n\n\n<h1 class=\"wp-block-heading usp-h1\">Proxy inverso nginx delante de Node.js: la gu\u00eda completa<\/h1>\n\n\n\n<p class=\"usp-meta wp-block-paragraph\">Por el equipo UseStackPulse Actualizado el 30 de agosto de 2026 9 min Lectura<\/p>\n\n\n\n<p class=\"usp-lede wp-block-paragraph\">Node.js no est\u00e1 hecho para ser expuesto directamente en Internet. nginx en proxy inverso administra SSL, compresi\u00f3n y websockets para usted.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group usp-ad-slot is-layout-flow wp-block-group-is-layout-flow\" style=\"margin-right:24px;margin-bottom:24px;margin-left:24px\">\n<p class=\"usp-ad-label wp-block-paragraph\">Publicidad \/ Tabla de clasificaci\u00f3n publicitaria 728\u00d790<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-container-core-group-is-layout-ecfbd4fd wp-block-group-is-layout-flow\" style=\"margin-right:24px;margin-bottom:24px;margin-left:24px\">\n<h2 class=\"wp-block-heading usp-h2\">Configuraci\u00f3n b\u00e1sica de proxy inverso<\/h2>\n\n\n\n<pre class=\"wp-block-code usp-code\"><code>server {\n    listen 80;\n    server_name monapp.com;\n\n    location \/ {\n        proxy_pass http:\/\/127.0.0.1:3000;\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection 'upgrade';\n        proxy_set_header Host $host;\n        proxy_cache_bypass $http_upgrade;\n    }\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading usp-h3\">Habilitar SSL con CertBot<\/h3>\n\n\n\n<pre class=\"wp-block-code usp-code\"><code>sudo apt install certbot python3-certbot-nginx\nsudo certbot --nginx -d monapp.com<\/code><\/pre>\n\n\n\n<p class=\"usp-tip wp-block-paragraph\">Sugerencia: los encabezados de actualizaci\u00f3n y conexi\u00f3n son esenciales para que WebSockets (Socket.io) funcionen correctamente a trav\u00e9s del proxy.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group usp-ad-slot is-layout-flow wp-block-group-is-layout-flow\" style=\"margin-right:24px;margin-bottom:24px;margin-left:24px\">\n<p class=\"usp-ad-label wp-block-paragraph\">Publicidad \/ Anuncio en el art\u00edculo 336\u00d7280<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-container-core-group-is-layout-b241125f wp-block-group-is-layout-flow\" style=\"margin-right:24px;margin-bottom:40px;margin-left:24px\">\n<h2 class=\"wp-block-heading usp-h2\">Preguntas frecuentes<\/h2>\n\n\n\n<details class=\"wp-block-details usp-faq is-layout-flow wp-block-details-is-layout-flow\"><summary>\u00bfNecesitas PM2 adem\u00e1s de nginx?<\/summary>\n<p class=\"wp-block-paragraph\" style=\"font-size:13px\">S\u00ed, PM2 maneja el proceso de Node.js (reinicio autom\u00e1tico, registros) mientras que Nginx maneja el tr\u00e1fico HTTP\/https entrante.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details usp-faq is-layout-flow wp-block-details-is-layout-flow\"><summary>\u00bfDeber\u00eda el puerto 3000 permanecer abierto p\u00fablicamente?<\/summary>\n<p class=\"wp-block-paragraph\" style=\"font-size:13px\">No, debe permanecer accesible solo localmente (127.0.0.1); Solo NGINX debe estar expuesto en los puertos 80\/443.<\/p>\n<\/details>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Accueil \/ H\u00e9bergement &amp; Cloud \/ Reverse proxy Node.js H\u00c9BERGEMENT &amp; SERVEUR Reverse proxy Nginx devant Node.js : le guide [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_zipai_imported":false,"_zipai_import_id":"","footnotes":""},"class_list":["post-168","page","type-page","status-publish","hentry"],"spectra_blocks_featured_image_url":null,"spectra_blocks_author_info":{"display_name":"usestackpulse","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/f2c693076eefeb6a1ac9f8299c6623627456d026be6ffbbb32fd62bd98781cc5?s=96&d=mm&r=g","author_link":"https:\/\/usestackpulse.com\/es\/author\/usestackpulse\/","description":""},"_links":{"self":[{"href":"https:\/\/usestackpulse.com\/es\/wp-json\/wp\/v2\/pages\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/usestackpulse.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/usestackpulse.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/usestackpulse.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/usestackpulse.com\/es\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":2,"href":"https:\/\/usestackpulse.com\/es\/wp-json\/wp\/v2\/pages\/168\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/usestackpulse.com\/es\/wp-json\/wp\/v2\/pages\/168\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/usestackpulse.com\/es\/wp-json\/wp\/v2\/media?parent=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}