Thanks Mohammad S. AlMutairi Its still not working The problem is that the changes dont do anything . Everything is overidden by local.cfg in /dspace. When I have dspace.ui.url = http://dspace7.lnec.pt:4000 I can access via the domain name if I change that to an ip address in the local.cfg file I can only access by Ip ! I cant do both This is my current yarn test
dspace-angular-dspace-7.3]$ yarn test:rest yarn run v1.22.19 $ ts-node --project ./tsconfig.ts-node.json scripts/test-rest.ts Building production app config Overriding app config with /home/jmmcosta/dspace-angular-dspace-7.3/config/config.prod.yml ...Testing connection to REST API at http://193.136.104.100:8080/server/api... RESPONSE: 200 Checking JSON returned for validity... "dspaceVersion" = DSpace 7.3 "dspaceUI" = http://dspace7.lnec.pt:4000 "dspaceServer" = http://193.136.104.100:8080/server "dspaceServer" property matches UI's "rest" config? true Does " What am i missing? On Tuesday, December 13, 2022 at 3:40:46 AM UTC Mohammad S. AlMutairi wrote: > On Monday, December 12, 2022 at 7:25:01 PM UTC+3 [email protected] wrote: > >> Theres a local.cfg in there as well , Im not sure which takes >> precedence/priority >> > local.cfg should have a higher priority over dspace.cfg. If this is a a > new installation remove/rename local.cfg to local.cfg-old and just use > dspace.cfg instead for this testing and try this: > > 1) echo "193.136.104.100 [domain name]" >> /etc/hosts > 2) edit dspace.cfg > #Remove dspace.hostname or comment it out. You don't need it. Not for what > you are using it for here. > #dspace.hostname = dspace7.********* > dspace.server.url = http://[domain name]:8080/server > dspace.ui.url = http://[domain name] > solr.server = http://localhost:8983/solr > > 3) edit config.prod.yml > ui: > ssl: false > host: localhost > port: 80 > > rest: > ssl: false > host: [domain name] > port: 8080 > > 4) Run (yarn test:rest) to check your configuration. You should see: > RESPONSE: 200 > > Checking JSON returned for validity... > "dspaceVersion" = DSpace 7.5-SNAPSHOT > "dspaceUI" = http://[domain name] > "dspaceServer" = http://[domain name]:8080/server > "dspaceServer" property matches UI's "rest" config? true > Does "/api" endpoint have HAL links ("_links" section)? true > > 5) Build the frontend. > > > ** You need to shutdown/disable the webserver if you have one running on > your server or you can run it on a different port or just run the frontend > on port 4000 and use a reverse proxy to talk to it as Tim recommended and > please remember running DSpace unsecure is unwise unless it's a temporarily > setup for any reason you have. > > ** Avoid Running Solr on any other IP address but localhost. See the > reason why in the screenshot ( > https://wiki.lyrasis.org/display/DSPACE/Solr#Solr-Bypassinglocalhostrestrictiontemporarily > > ) > > [image: 2022-12-13_6-37-21.jpg] > -- 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/062afed0-4ddc-4c34-a213-c0c5c638f1b2n%40googlegroups.com.
