I have been trying to squash this one for days now. I have both backend
and frontend servers running on the same machine. Both are running secure
via apache2 or Nginx proxy (yes, I tried both).
Here is what I see in the console:
[Error] WebSocket connection to
'wss://redacted2.ac.za/sockjs-node/673/beoy5t2y/websocket' failed:
Unexpected response code: 400
[Error] Invalid Host/Origin header
error
error (vendor.js:127553)
(anonymous function) (vendor.js:97762)
(anonymous function) (vendor.js:166322)
(anonymous function) (vendor.js:133298)
(anonymous function) (vendor.js:134016)
forEach
(anonymous function) (vendor.js:134014)
(anonymous function)
(anonymous function) (vendor.js:133214)
(anonymous function) (vendor.js:135331)
(anonymous function) (vendor.js:133214)
(anonymous function) (vendor.js:135276)
(anonymous function) (vendor.js:133214)
(anonymous function) (vendor.js:135755)
(anonymous function)
(anonymous function) (vendor.js:133214)
(anonymous function) (vendor.js:134709)
wrapFn (polyfills.js:13605)
runTask (polyfills.js:12554)
invokeTask (polyfills.js:12867)
invokeTask (polyfills.js:14008)
globalZoneAwareCallback (polyfills.js:14034)
[Error] [WDS] Disconnected!
error
close (vendor.js:127556)
(anonymous function) (vendor.js:97741)
(anonymous function) (vendor.js:133298)
(anonymous function) (vendor.js:134098)
(anonymous function)
runTask (polyfills.js:12554)
invokeTask (polyfills.js:12867)
timer (polyfills.js:14939)
Here is what I have in local.cfg:
##########################
# SERVER CONFIGURATION #
##########################
# DSpace installation directory.
# This is the location where you want to install DSpace.
# Windows note: Please remember to use forward slashes for all paths (e.g.
C:/dspace)
dspace.dir=/data/dspace
# URL of DSpace backend ('server' webapp). Include port number etc.
# DO NOT end it with '/'.
# This is where REST API and all enabled server modules (OAI-PMH, SWORD,
# SWORDv2, RDF, etc) will respond.
dspace.server.url = https://redacted1.ac.za/server
# URL of DSpace frontend (Angular UI). Include port number etc.
# DO NOT end it with '/'.
# This is used by the backend to provide links in emails, RSS feeds,
Sitemaps,
# etc.
dspace.ui.url = https://redacted2.ac.za
# Name of the site
dspace.name = Research Commons
# assetstore.dir, look at DSPACE/config/spring/api/bitstore.xml for more
options
# default is ${dspace.dir}/assetstore, uncomment and modify if you need to
use a different path
#assetstore.dir = assetstore
# Default language for metadata values
#default.language = en_US
# Solr server/webapp.
# DSpace uses Solr for all search/browse capability (and for usage
statistics).
# Since DSpace 7, SOLR must be installed as a stand-alone service
solr.server = http://localhost:8983/solr
Here is what I have in environments.prod.ts:
export const environment = {
// The "ui" section defines where you want Node.js to run/respond. It may
correspond to your primary URL, but it also may not (if you are running b>
// In this example, we are setting up our UI to just use localhost, port
4000.
// This is a common setup for when you want to use Apache or Nginx to
handle HTTPS and proxy requests to Node on port 4000
ui: {
ssl: false,
host: 'localhost',
port: 4000,
// NOTE: Space is capitalized because 'namespace' is a reserved
string in TypeScript
nameSpace: '/'
},
// This example is valid if your Backend is publicly available at
https://api.mydspace.edu/server/
// The REST settings MUST correspond to the primary URL of the backend.
Usually, this means they must be kept in sync
// with the value of "dspace.server.url" in the backend's local.cfg
rest: {
ssl: true,
host: 'redacted1.ac.za',
port: 443,
// NOTE: Space is capitalized because 'namespace' is a reserved
string in TypeScript
nameSpace: '/server'
},
themes: [
{
name: 'mytheme'
},
],
};
I have everything else working, it seems. I have branded the site, I have
created communities and collections, but I can't create items because I
can't upload anything. I have tried checking directory ownership and
permissions in the underlying filesystem, but nothing seems to work.
I would appreciate some help if anyone has a clue as to what is going on.
Many thanks!
--
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/e63c965e-fc83-45be-8817-6fd75c78196dn%40googlegroups.com.