Skip to content

Commit

Permalink
Testing server routes
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaFM committed Dec 2, 2024
1 parent b07c027 commit b7c18b4
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions nginx_copy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ server {
# try_files $uri $uri/ =404; # Asegura que los archivos estáticos se sirvan correctamente
# }

location / {
proxy_pass http://localhost: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;
}

# location / {
# proxy_pass http://localhost:3000; # Aquí hacemos el proxy hacia el puerto 3000 dentro del contenedor
# proxy_pass http://localhost: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;

# # Para asegurar que la aplicación Nuxt se ejecute correctamente
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# }

location / {
proxy_pass http://localhost:3000; # Aquí hacemos el proxy hacia el puerto 3000 dentro del contenedor
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;

# Para asegurar que la aplicación Nuxt se ejecute correctamente
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

0 comments on commit b7c18b4

Please sign in to comment.