Hi, Those URLs are from the "dspace.server.url" configuration in your local.cfg (or dspace.cfg). It's likely you've set that to be "http://127.0.0.1:8080/server", which obviously is not the URL you want: https://github.com/DSpace/DSpace/blob/main/dspace/config/dspace.cfg#L26
If the UI is accessible to the world, you MUST ensure that this "dspace.server.url" is also accessible to the world...so, it cannot be a 127.0.0.1 or localhost URL unless you only plan to access the UI and REST API from localhost (i.e. this can be useful for development but is never used in production). Tim On Wednesday, March 16, 2022 at 2:35:06 PM UTC-5 [email protected] wrote: > Hello everyone! > > We've been trying to setup a 7.2 version but I've looked on every config > file on the back-end but couldnt locate where to change the base href of > the base statistics server. > > Our call "http://<ip>/server/api/statistics" is always returning: > > { "id": null, "type": "statistics", "_links": { "searchevents": { "href": " > http://127.0.0.1:8080/server/api/statistics/searchevents" }, "self": { > "href": "http://127.0.0.1:8080/server/api/statistics" }, "viewevents": { > "href": "http://127.0.0.1:8080/server/api/statistics/viewevents" } } } > > But on the client side it just throws: "Failed to load resource: > net::ERR_CONNECTION_REFUSED" -> > http://127.0.0.1:8080/server/api/statistics/viewevents > > Is there any way to change this "127.0.0.1" to my actual server ip? > > The documentation only mentions solr but the solr is fine. The file > "/modules/usage-statistics.cfg" gave me some hope but it's not there. > > I also noticed that the discovery service calls ( > http://127.0.0.1:8080/server/api/discover/browses/author/entries) are > also fixed on the wrong ip. > > Thanks in advance! > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/9397b705-8be2-41df-8930-2074f5d50660n%40googlegroups.com.
