36 lines
886 B
Nginx Configuration File
36 lines
886 B
Nginx Configuration File
server {
|
|
listen 5173;
|
|
listen [::]:5173;
|
|
server_name _;
|
|
|
|
root /app/dist;
|
|
index index.html;
|
|
|
|
# Apache en Sinbad2 reescribe la URL pública `/orcid2words/...` 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/`
|
|
# (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 ^~ /orcid2words/ {
|
|
rewrite ^/orcid2words/(.*)$ /$1 break;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location = /orcid2words {
|
|
try_files /index.html =404;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|