Hi, so ive installed DSpace 7.2 behind nginx
#NGINX CONFIG
...
server {
listen 443 ssl;
server_name repositorio.emgs.mx;
ssl_certificate /etc/nginx/ssl/emgs.cer;
ssl_certificate_key /etc/nginx/ssl/emgs.key;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
location /server {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://repositorio.emgs.mx:8080/server;
proxy_redirect http://repositorio.emgs.mx:8080/server
https://repositorio.emgs.mx/server;
}
location / {
proxy_pass http://repositorio.emgs.mx:4000;
proxy_read_timeout 90;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect http://repositorio.emgs.mx:4000
https://repositorio.emgs.mx;
}
}
#BACKEND local.cfg
dspace.server.url = https://repositorio.emgs.mx/server
dspace.ui.url = https://repositorio.emgs.mx
solr.server = http://repositorio.emgs.mx:8983/solr
#FRONTEND config.prod.yml
ui:
ssl: false
host: repositorio.emgs.mx
port: 4000
nameSpace: /
rest:
ssl: true
host: repositorio.emgs.mx
port: 443
nameSpace: /server
#TOMCAT
<Connector port="8080"
minSpareThreads="25"
enableLookups="false"
connectionTimeout="20000"
disableUploadTimeout="true"
URIEncoding="UTF-8"/>
Everything seems to be running fine. Can log in, REST API appears to be
working fine, but th yarn test gives me an error message as it is being
chunked up into pieces. Read all troubleshooting but ive checked all my
configs and everything seems to be fine.
yarn test:rest
yarn run v1.22.18
$ ts-node --project ./tsconfig.ts-node.json scripts/test-rest.ts
Building production app config
Overriding app config with
/home/dspace/dspace-front-source/config/config.prod.yml
...Testing connection to REST API at
https://repositorio.emgs.mx/server/api...
RESPONSE: 200
ERROR: INVALID DSPACE REST API! Response is not valid JSON!
Response returned:
{"dspaceUI":"https://repositorio.emgs.mx","dspaceName":"Repositorio Sanidad
Militar","dspaceServer":"https://repositorio.emgs.mx/server","dspaceVersion":"DSpace
7.2.1","type":"root","_links":{"authn":{"href":"https://repositorio.emgs.mx/server/api/authn"},"authorizations":{"href":"https://repositorio.emgs.mx/server/api/authz/authorizations"},"bitstreamformats":{"href":"https://repositorio.emgs.mx/server/api/core/bitstreamformats"},"bitstreams":{"href":"https://repositorio.emgs.mx/server/api/core/bitstreams"},"browses":{"href":"https://repositorio.emgs.mx/server/api/discover/browses"},"bundles":{"href":"https://repositorio.emgs.mx/server/api/core/bundles"},"claimedtasks":{"href":"https://repositorio.emgs.mx/server/api/workflow/claimedtasks"},"claimedtasks-search":{"href":"https://repositorio.emgs.mx/server/api/workflow/claimedtasks/search"},"collections":{"href":"https://repositorio.emgs.mx/server/api/core/collections"},"communities":{"href":"https://repositorio.emgs.mx/server/api/core/communities"},"discover":{"href":"https://repositorio.emgs.mx/server/api/discover"},"dso":{"href":"https://repositorio.emgs.mx/server/api/dso/find{?uuid}","templated":true},"entitytypes":{"href":"https://repositorio.emgs.mx/server/api/core/entitytypes"},"eperson-registration":{"href":"https://repositorio.emgs.mx/server/api/eperson/registrations"},"epersons":{"href":"https://repositorio.emgs.mx/server/api/eperson/epersons"},"externalsources":{"href":"https://repositorio.emgs.mx/server/api/integration/externalsources"},"features":{"href":"https://repositorio.emgs.mx/server/api/authz/features"},"feedbacks":{"href":"https://repositorio.emgs.mx/server/api/tools/feedbacks"},"groups":{"href":"https://repositorio.emgs.mx/server/api/eperson/groups"},"itemrequests":{"href":"https://repositorio.emgs.mx/server/api/tools/itemrequests"},"items":{"href":"https://repositorio.emgs.mx/server/api/core/items"},"itemtemplates":{"href":"https://repositorio.emgs.mx/server/api/core/itemtemplates"},"metadatafields":{"href":"https://repositorio.emgs.mx/server/api/core/metadatafields"},"metadataschemas":{"href":"https://repositorio.emgs.mx/server/api/core/metadataschemas"},"oidc":{"href":"https://repositorio.emgs.mx/server/api/authn"},"pid":{"href":"https://repositorio.emgs.mx/server/api/pid/find{?id}","templated":true},"pooltasks":{"href":"https://repositorio.emgs.mx/server/api/workflow/pooltasks"},"pooltasks-search":{"href":"https://repositorio.emgs.mx/server/api/workflow/pooltasks/search"},"processes":{"href":"https://repositorio.emgs.mx/server/api/system/processes"},"properties":{"href":"https://repositorio.emgs.mx/server/api/config/properties"},"registrations":{"href":"https://repositorio.emgs.mx/server/api/eperson/registrations"},"relationships":{"href":"https://repositorio.emgs.mx/server/api/core/relationships"},"relationshiptypes":{"href":"https://repositorio.emgs.mx/server/api/core/relationshiptypes"},"resourcepolicies":{"href":"https://repositorio.emgs.mx/server/api/authz/resourcepolicies"},"resourcepolicies-search":{"href":"https://repositorio.emgs.mx/server/api/authz/resourcepolicies/search"},"scripts":{"href":"https://repositorio.emgs.mx/server/api/system/scripts"},"self":{"href":"https://repositorio.emgs.mx/server/api"},"sites":{"href":"https://repositorio.emgs.mx/server/api/core/sites"},"statistics":{"href":"https://repositorio.emgs.mx/server/api/statistics"},"submissionaccessoptions":{"href":"https://repositor
ERROR: INVALID DSPACE REST API! Response is not valid JSON!
Response returned:
io.emgs.mx/server/api/config/submissionaccessoptions"},"submissioncclicenseUrls":{"href":"https://repositorio.emgs.mx/server/api/config/submissioncclicenseUrls"},"submissioncclicenseUrls-search":{"href":"https://repositorio.emgs.mx/server/api/config/submissioncclicenseUrls/search"},"submissioncclicenses":{"href":"https://repositorio.emgs.mx/server/api/config/submissioncclicenses"},"submissiondefinitions":{"href":"https://repositorio.emgs.mx/server/api/config/submissiondefinitions"},"submissionforms":{"href":"https://repositorio.emgs.mx/server/api/config/submissionforms"},"submissionsections":{"href":"https://repositorio.emgs.mx/server/api/config/submissionsections"},"submissionuploads":{"href":"https://repositorio.emgs.mx/server/api/config/submissionuploads"},"usagereports":{"href":"https://repositorio.emgs.mx/server/api/statistics/usagereports"},"versionhistories":{"href":"https://repositorio.emgs.mx/server/api/versioning/versionhistories"},"versions":{"href":"https://repositorio.emgs.mx/server/api/versioning/versions"},"vocabularies":{"href":"https://repositorio.emgs.mx/server/api/submission/vocabularies"},"vocabularyEntryDetails":{"href":"https://repositorio.emgs.mx/server/api/submission/vocabularyEntryDetails"},"vocabularyEntryDetails-search":{"href":"https://repositorio.emgs.mx/server/api/submission/vocabularyEntryDetails/search"},"workflowactions":{"href":"https://repositorio.emgs.mx/server/api/config/workflowactions"},"workflowdefinitions":{"href":"https://repositorio.emgs.mx/server/api/config/workflowdefinitions"},"workflowitems":{"href":"https://repositorio.emgs.mx/server/api/workflow/workflowitems"},"workflowsteps":{"href":"https://repositorio.emgs.mx/server/api/config/workflowsteps"},"workspaceitems":{"href":"https://repositorio.emgs.mx/server/api/submission/workspaceitems"}}}
Done in 4.62s.
I would really appreciate the help.
Diego,
--
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/68ccf6ac-cabb-4407-87c5-9d7378a261e5n%40googlegroups.com.