refactor: update Dockerfile to use Nginx for serving the application and adjust configuration for multi-stage build
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
server {
|
||||
listen 5173;
|
||||
listen [::]:5173;
|
||||
server_name _;
|
||||
|
||||
root /app/dist;
|
||||
index index.html;
|
||||
|
||||
# Apache forwards the full path; strip /orcid2words/ before resolving files under dist/.
|
||||
location = /orcid2words {
|
||||
return 301 /orcid2words/;
|
||||
}
|
||||
|
||||
location /orcid2words/ {
|
||||
rewrite ^/orcid2words/(.*)$ /$1 break;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user