REST port 80

65 views
Skip to first unread message

Steve Michaels

unread,
Dec 18, 2023, 4:57:02 PM12/18/23
to DSpace Technical Support
I've been having difficulty getting my instance of 7.6 to run on SSL.

One of the things I've noticed is that the config.json file has the REST interface running SSL on port 80:
{
  "production": true,
  "debug": true,
  "ui": {
    "ssl": false,
    "host": "localhost",
    "port": 4000,
    "nameSpace": "/xmlui",
    "rateLimiter": {
      "windowMs": 60000,
      "max": 500
    },
    "useProxies": true,
    "baseUrl": "http://localhost:4000/xmlui"
  },
  "rest": {
    "ssl": true,
    "host": "10.101.150.11",
    "port": 80,
    "nameSpace": "/server",
    "baseUrl": "https://10.101.150.11/server"
  },
[--SNIP--]
when the config.*.yml clearly has:
ui:
  ssl: false
  host: localhost
  port: 4000
  nameSpace: /xmlui
    #  baseUrl": http://localhost:4000
rest:
  ssl: true
  host: 10.101.150.11
  port: 443
  nameSpace: /server
    #baseUrl: https://10.101.150.11/server

Does this make a difference and why is the compiled config.json file wrong?

Andrew K

unread,
Dec 18, 2023, 5:10:49 PM12/18/23
to DSpace Technical Support
Hi Steve,

Here's the manual I followed to switch to SSL

I also noticed that you have nameSpace: /xmlui in the config files. I think it should be nameSpace: /

Best regards,
Andrew
понеділок, 18 грудня 2023 р. о 23:57:02 UTC+2 Steve Michaels пише:

Steve Michaels

unread,
Dec 21, 2023, 2:36:11 PM12/21/23
to DSpace Technical Support
I've tracked down some of the issues to the fact that I was using the IP Address until I could migrate traffic to the server.

What I'm seeing now is that PM2 is writing the hostname as the IP Address.  I can't tell where that information is coming from.

config/config.*.yml:
rest:
  ssl: true
  host: {HOSTNAME}
  port: 443
  nameSpace: /server

dist/browser/assets/config.json:
"rest": {
    "ssl": true,
    "host": "{IP ADDRESS}",

    "port": 80,
    "nameSpace": "/server",
    "baseUrl": "https:// {IP ADDRESS} /server"
Reply all
Reply to author
Forward
0 new messages