Techstack im using:
- Angular 15
- Spring Boot 3.1.4
- Caddy 2.7.2
- Oracle Cloud VM
- docker compose with docker 24.0.5
my Angular frontend is protected by Auth0.
I’m delivering my static frontend files (dist/) inside my Spring Boot backend. Herefore I’m saving those files at ‘myApp/src/main/resources/static/’.
When starting the Spring application via gradle the frontend is loaded at the root path (e.g localhost:8080) and everything just works fine.
Same, when I start the Spring application as a container on port 8080 on my local machine.
To deploy my app I’m using a free Oracle Linux VM (for reference check ‘https://www.aclue.de/2023/07/22/deploy-and-securely-expose-your-app-on-a-free-virtual-machine/’) with a Caddy reverse proxy.
It’s configured like so:
But when I start the Caddy server and run the container on the VM the Issue occures. I’m getting a white screen and some ‘403 Forbidden’ responses on the resources:
Any help would be appreciated.