From 5e77cff8c6d03918f48df4543273187d6bf0046b Mon Sep 17 00:00:00 2001 From: "Jessica F. Martinez" Date: Tue, 10 Dec 2024 13:13:34 +0100 Subject: [PATCH] UPDATE nginx conf --- nginx_copy.conf | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/nginx_copy.conf b/nginx_copy.conf index 5ecf988..89a6474 100644 --- a/nginx_copy.conf +++ b/nginx_copy.conf @@ -10,10 +10,19 @@ http { # server_name test2.openebench.bsc.es; # Servir contenido estático (frontend) + # location / { + # root /usr/share/nginx/html; + # index index.html; + # try_files $uri $uri/ /index.html; + # } + location / { - root /usr/share/nginx/html; - index index.html; - try_files $uri $uri/ /index.html; + proxy_pass http://127.0.0.1:3000; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_cache_bypass $http_upgrade; } # Pasar rutas dinámicas (/api/*) al servidor de Nuxt