From d69ef0c6db9d8f6462146a187b626d8dde7b648f Mon Sep 17 00:00:00 2001 From: f Date: Tue, 8 Jun 2021 13:27:02 -0300 Subject: [PATCH] =?UTF-8?q?los=20service=20workers=20necesitan=20servirse?= =?UTF-8?q?=20dentro=20de=20la=20ra=C3=ADz=20del=20sitio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit por políticas de permisos no pueden alojarse en subdirectorios sin perder acceso a todo el sitio. con este cambio redirigimos el sw.js en la raíz del sitio a webpack-dev-server --- nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx.conf b/nginx.conf index 8d2082f..736297c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -13,6 +13,10 @@ server { proxy_pass http://127.0.0.1:65001; } + location /sw.js { + proxy_pass http://127.0.0.1:65001; + } + location /sockjs-node/ { proxy_set_header Connection "upgrade"; proxy_set_header Upgrade $http_upgrade;