fix: update base path from /orcid2words to /orcid2sword in .env, Dockerfile, and nginx.conf
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ COPY . .
|
|||||||
# `env_file` en docker-compose solo inyecta variables en el contenedor al ARRANCAR
|
# `env_file` en docker-compose solo inyecta variables en el contenedor al ARRANCAR
|
||||||
# (aquí nginx no usa Vite). `vite build` corre en esta fase y necesita `VITE_*`
|
# (aquí nginx no usa Vite). `vite build` corre en esta fase y necesita `VITE_*`
|
||||||
# ya definidas: `.env` no entra en el contexto de build (.dockerignore).
|
# ya definidas: `.env` no entra en el contexto de build (.dockerignore).
|
||||||
ENV VITE_BASE_PATH=/orcid2words/
|
ENV VITE_BASE_PATH=/orcid2sword/
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# ── Serve stage ────────────────────────────────────────────────
|
# ── Serve stage ────────────────────────────────────────────────
|
||||||
|
|||||||
+5
-5
@@ -16,9 +16,9 @@ server {
|
|||||||
add_header Cache-Control "no-store" always;
|
add_header Cache-Control "no-store" always;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Apache en Sinbad2 reescribe la URL pública `/orcid2words/...` a un prefijo
|
# Apache en Sinbad2 reescribe la URL pública `/orcid2sword/...` a un prefijo
|
||||||
# interno distinto (`/flintstones/...`) antes de llegar a este contenedor.
|
# interno distinto (`/flintstones/...`) antes de llegar a este contenedor.
|
||||||
# Hay que quitar ese prefijo y servir desde dist/ igual que con `/orcid2words/`
|
# Hay que quitar ese prefijo y servir desde dist/ igual que con `/orcid2sword/`
|
||||||
# (acceso directo al puerto 8073 sin pasar por Apache).
|
# (acceso directo al puerto 8073 sin pasar por Apache).
|
||||||
|
|
||||||
location ^~ /flintstones/ {
|
location ^~ /flintstones/ {
|
||||||
@@ -30,12 +30,12 @@ server {
|
|||||||
try_files /index.html =404;
|
try_files /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /orcid2words/ {
|
location ^~ /orcid2sword/ {
|
||||||
rewrite ^/orcid2words/(.*)$ /$1 break;
|
rewrite ^/orcid2sword/(.*)$ /$1 break;
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /orcid2words {
|
location = /orcid2sword {
|
||||||
try_files /index.html =404;
|
try_files /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user