How to make DSpace 7 available on LAN

822 views
Skip to first unread message

Marshal Phiri

unread,
Sep 15, 2023, 6:47:39 AM9/15/23
to DSpace Technical Support
when I changed localhost to the IP address of the installed PC in the following scripts:

1. sudo mousepad /dspace/config/local.cfg
dspace.ui.url = http://localhost:4000
dspace.server.url = http://localhost:8080/server

2. sudo mousepad /home/dspace/dspace-angular-dspace-7.5/config/config.prod.yml
ssl: false
host: localhost
port: 4000

# The REST API server settings
# NOTE: these settings define which (publicly available) REST API to use. They are usually
# 'synced' with the 'dspace.server.url' setting in your backend's local.cfg.
rest:
  ssl: false
  host: localhost
  port: 8080
  # NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
  nameSpace: /server
 

3. sudo mousepad /home/dspace/dspace-angular-dspace-7.5/dspace-ui.json
Find the line,

"DSPACE_REST_HOST": "localhost",

Change localhost to the IP address. Save and close the file.  Then restart the PC.

The installed PC acts as the server. However; I can only access the DSpace 7 on the localhost pc using its Ip Address (http://ip-address:4000) not http://localhost:4000. When I manage to login from the localhost pc; I can not add community,  or add collection but If I do not assign IP address on the installed PC; and open http://localhost:4000; I can add communities and collection. Please assist me with how to configure or procedure to make DSpace 7 available on LAN   

DSpace Technical Support

unread,
Sep 22, 2023, 11:24:13 AM9/22/23
to DSpace Technical Support
Hi,

I think the issue you may be having is that the REST API *must be accessible* to all users of DSpace.  If the REST API host is "localhost" that means it's only available on localhost.  It won't be accessible to users coming from any other machine.

It's important the realize that the User Interface always runs in the users' browser.  So, every user's browse *MUST* be able to communicate with the REST API.  This is why we recommend that the REST API always be on a "publicly access", HTTPS URL in the installation guide (see step 17): 

Tim

suresh patil

unread,
Jul 29, 2024, 2:12:25 AM7/29/24
to DSpace Technical Support
Hi Team.

what if my requirement is to run DSpace7.6.1 application only within the LAN with HTTP.


Thanks

Reply all
Reply to author
Forward
0 new messages