Hello,
We recently migrated our production environment from Debian Buster to Debian Bookworm. This change has caused the default NGINX configuration for the Angular frontend to stop working, as it had been functioning for five years. We are deploying with your provided Dockerfiles and haven't touched them for the frontend.
To resolve this issue, we need to add the following line to the default.conf file (location /) after building the frontend image using your provided script (build-with-ng.ps1): try_files $uri $uri/ /index.html;
This is explained in more detail here: https://angular.dev/tools/cli/deployment#routed-apps-must-fall-back-to-indexhtml We are unsure why this change is necessary or why it was previously working without it. Could you please update your script to include this line or check this?
Thank you!
Greetings, Julian
2 Answer(s)
-
0
Hi @ips-jm
Thank you for your feedback. We have created an issue for this and will investigate it in detail. You can follow the updates through the issue.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thank you for the quick implementation!
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)