46 lines
1.2 KiB
Nginx Configuration File
46 lines
1.2 KiB
Nginx Configuration File
server {
|
|
listen 5173;
|
|
listen [::]:5173;
|
|
server_name _;
|
|
|
|
# Evita que nginx fabrique `Location` absoluto con su puerto interno (5173)
|
|
# si en algún momento se emitiera una redirección.
|
|
absolute_redirect off;
|
|
port_in_redirect off;
|
|
|
|
root /app/dist;
|
|
index index.html;
|
|
|
|
# index.html sin caché → evita que persistan 301/HTML antiguos en clientes.
|
|
location = /index.html {
|
|
add_header Cache-Control "no-store" always;
|
|
}
|
|
|
|
# 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 `/orcid2sword/`
|
|
# (acceso directo al puerto 8073 sin pasar por Apache).
|
|
|
|
location ^~ /flintstones/ {
|
|
rewrite ^/flintstones/(.*)$ /$1 break;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location = /flintstones {
|
|
try_files /index.html =404;
|
|
}
|
|
|
|
location ^~ /orcid2sword/ {
|
|
rewrite ^/orcid2sword/(.*)$ /$1 break;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location = /orcid2sword {
|
|
try_files /index.html =404;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|