Hi Matus,
Your frontend is trying to reach the backend on "'
http://repozitar.fhv.uniza.sk:8080/server/" which should not happen because of how you tell it to reach the backend in local.cfg. Follow the steps you see below it should fix it for you.
** Your local.cfg and config.prod.yml is O.K so don't change them.
# Only follow these steps if DSpace is the only site configured in apache in your server.
1) echo "dspace-server-private-ip
repozitar.fhv.uniza.sk" >> /etc/hosts
2) a2enmod proxy_http ssl headers
3) rm -rf /etc/apache2/sites-enabled/*.conf
4) edit /etc/apache2/sites-available/dspace.conf ... Copy and past what's in the attached file into dspace.conf.
5) a2ensite dspace.conf
6) systemctl restart apache2
# Test & Build the Frontend
1) yarn test:rest
RESPONSE: 200 <--- You should get the 200 response for a successful connection.
Checking JSON returned for validity...
"dspaceVersion" = DSpace 7.4
"dspaceUI" =
https://repozitar.fhv.uniza.sk <--- should match dspace.ui.url in local.cfg or dspace.cfg
"dspaceServer" =
https://repozitar.fhv.uniza.sk/server <--- should match dspace.server.url in local.cfg or dspace.cfg
"dspaceServer" property matches UI's "rest" config? true <--- Should be true before proceeding to the building step
Does "/api" endpoint have HAL links ("_links" section)? true <--- Should be true before proceeding to the building step
2) yarn start:prod
*** Make sure tomcat is running on port 8080 and SSL is not enabled in Tomcat server.xml config file. SSL termination will be done on Apache instead.
Good luck