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 9ba5650 commit 77ea2da
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 54 deletions.
4 changes: 2 additions & 2 deletions components/Landing/LandingHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
<div class="col-lg-5 d-none d-lg-block">
<div class="welcome-header-image">
<img
src="~/assets/images/illustrations/chart-person.svg"
alt="welcome-header-image"
src="~/assets/images/illustrations/lab_community.png"
alt="welcome header image"
/>
</div>
</div>
Expand Down
104 changes: 52 additions & 52 deletions nginx_copy.conf
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
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;
}
}

# 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 /_nuxt/ {
# # try_files $uri $uri/ =404;
# # }
# 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;
# }
# }

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 /_nuxt/ {
# try_files $uri $uri/ =404;
# }
# location / {
# proxy_pass http://localhost:3000; # Aquí hacemos el proxy hacia el puerto 3000 dentro del contenedor
# proxy_http_version 1.1;
Expand All @@ -59,4 +59,4 @@ server {
# proxy_cache_bypass $http_upgrade;
# }

# }
}

0 comments on commit 77ea2da

Please sign in to comment.