How you decide to structure your folders is your opinion
Since you want the user account caddy to access the folders, we need to give it execute permissions on all the folders up to the last folder:
chmod o+x /home/ubuntu/ /home/ubuntu/WS24-MyDailyImpact/ /home/ubuntu/WS24-MyDailyImpact/mdi-react/
(We know the permissions on dist
are correct, since you shared them already)
After running this, sudo -u caddy ls -l /home/ubuntu/WS24-MyDailyImpact/mdi-react/dist/index.html
should work work now, and caddy should be able to show the files