Skip to content

Commit

Permalink
FIX build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaFM committed Nov 22, 2024
1 parent 77ea2da commit abc45d8
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions nginx_copy.conf
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
# server {
# listen 80; # Nginx escucha en el puerto 80, expuesto al host

# server_name test2.openebench.bsc.es; # O puedes especificar tu dominio si es necesario

# # Directorio de los archivos estáticos generados por Nuxt
# root /app/.output/public;

# # Servir archivos estáticos (JS, CSS, imágenes, etc.)
# location /_nuxt/ {
# try_files $uri $uri/ =404; # Asegura que los archivos estáticos se sirvan correctamente
# }

# location / {
# proxy_pass http://127.0.0.1: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;
server {
listen 80; # Nginx escucha en el puerto 80, expuesto al host

server_name test2.openebench.bsc.es; # O puedes especificar tu dominio si es necesario

# Directorio de los archivos estáticos generados por Nuxt
root /app/.output/public;

# Servir archivos estáticos (JS, CSS, imágenes, etc.)
location /_nuxt/ {
try_files $uri $uri/ =404; # Asegura que los archivos estáticos se sirvan correctamente
}

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

# # 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;
# }
# }
# server {
# listen 80;
# sendfile on;
# default_type application/octet-stream;

# gzip on;
# gzip_http_version 1.1;
# gzip_disable "MSIE [1-6]\.";
# gzip_min_length 256;
# gzip_vary on;
# gzip_proxied expired no-cache no-store private auth;
# gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
# gzip_comp_level 9;

# root /usr/share/nginx/html;
# index index.html;

server {
listen 80;
sendfile on;
default_type application/octet-stream;

gzip on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.";
gzip_min_length 256;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 9;

root /usr/share/nginx/html;
index index.html;

location / {
try_files $uri $uri/ /index.html =404;
}
# location / {
# try_files $uri $uri/ /index.html =404;
# }

# location /_nuxt/ {
# try_files $uri $uri/ =404;
Expand Down

0 comments on commit abc45d8

Please sign in to comment.