mirror of
https://github.com/booklore-app/booklore.git
synced 2025-12-23 22:28:11 -05:00
Fix pdf viewer when opening in docker.
Have envs for angular.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user