Skip to content

Commit

Permalink
UPDATE nginx conf
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaFM committed Dec 10, 2024
1 parent c28043c commit 5e77cff
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions nginx_copy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e77cff

Please sign in to comment.