fix: update base path from /orcid2words to /orcid2sword in .env, Dockerfile, and nginx.conf

This commit is contained in:
Alexis
2026-05-14 10:50:52 +02:00
parent 7ac0eab321
commit 76f003377d
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ COPY . .
# `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_*`
# 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
# ── Serve stage ────────────────────────────────────────────────
+5 -5
View File
@@ -16,9 +16,9 @@ server {
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.
# 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).
location ^~ /flintstones/ {
@@ -30,12 +30,12 @@ server {
try_files /index.html =404;
}
location ^~ /orcid2words/ {
rewrite ^/orcid2words/(.*)$ /$1 break;
location ^~ /orcid2sword/ {
rewrite ^/orcid2sword/(.*)$ /$1 break;
try_files $uri $uri/ /index.html;
}
location = /orcid2words {
location = /orcid2sword {
try_files /index.html =404;
}