Hi, I am running DSpace 7.4 backend/frontend behind Nginx with SSL. I am getting a 500 error on the frontend. I am aware of the troubleshooting steps and have followed them to no avail, however I am a bit confused with some of the steps in relation to having Nginx with reverse proxy.
*Backend Configuration* */dspace/config/local.cfg* dspace.server.url = http://localhost:8080/server dspace.ui.url = http://localhost:4000 *Frontend Configuration* */dspace-angular/config/config.prod.yml* ui: ssl: false host: localhost port: 4000 nameSpace: / rest: ssl: false host: localhost port: 8080 nameSpace: /server *Nginx Configuration* server { listen 443 ssl; server_name my-dspace.mydomain.com; # SSL certificate goes here location / { # Reverse proxy to DSpace ui proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://localhost:4000/; } } Any idea why the frontend can't communicate with the backend ? I have seen that in some configs the rest api or ui is made public, however that doesn't make sense to me since Nginx is forwarding all public requests to the local instances. Am I missing something here? *Result of 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/dspace/dspace-angular-dspace-7.4/config/config.yml Overriding app config with /home/dspace/dspace-angular-dspace-7.4/config/config.prod.yml ...Testing connection to REST API at http://localhost:8080/server/api... RESPONSE: 200 Checking JSON returned for validity... "dspaceVersion" = DSpace 7.4 "dspaceUI" = http://localhost:4000 "dspaceServer" = http://localhost:8080/server "dspaceServer" property matches UI's "rest" config? true Does "/api" endpoint have HAL links ("_links" section)? true Done in 6.71s. -- 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/1447f47c-d472-4b46-ac78-b13566474a1dn%40googlegroups.com.
