Fix pdf viewer when opening in docker.

Have envs for angular.
This commit is contained in:
aditya.chandel
2025-01-22 18:30:28 -07:00
parent df6d756dc5
commit 156e2439aa
9 changed files with 37 additions and 9 deletions

View File

@@ -17,6 +17,15 @@ http {
# Serve Angular UI
location / {
try_files $uri $uri/ /index.html; # Fallback to index.html for Angular routing
location ~* \.mjs$ {
# target only *.mjs files
# now we can safely override types since we are only
# targeting a single file extension.
types {
text/javascript mjs;
}
}
}
# Proxy API requests that start with /api/ to the backend