If the registry is communicating with the storage with plain http instead of https, the request for oc-client.min.js
is still using the https protocol.
Of course, the storage should use a SSL/TLS encryption when exposed publicly, but in this case I'm running a registry locally. The registry runs on http://localhost:3333 and the storage on http://localhost:8080. When accessing the registry in the browser (http://localhost:3333/) there is a request in the browser for https://localhost:8080/bucket/components/oc-client/0.42.16/src/oc-client.min.js
. Notice the https protocol. As the storage isn't exposed with https locally that yields an error.
let configuration = {
verbosity: 5,
baseUrl: 'http://localhost:3333',
port: 3333,
tempDir: './temp/',
refreshInterval: 600,
pollingInterval: 5,
storage: {
adapter: riak,
options: {
key: '...',
secret: '...',
bucket: 'foo',
region: 'us-east-1',
componentsDir: 'components',
signatureVersion: 'v2',
sslEnabled: false,
path: '//localhost:8080/foo/',
s3ForcePathStyle: true,
debug: true,
endpoint: {
protocol: 'http',
hostname: 'localhost',
port: '8080'
}
}
},
env: { name: 'production' }
};