@@ -3,6 +3,7 @@ import { sdk } from './sdk'
|
||||
import {
|
||||
CERTRELAY_PORT,
|
||||
EXPLORER_PORT,
|
||||
spacedRpcPort,
|
||||
SUBSPACES_PROVER_PORT,
|
||||
SUBSPACES_REGISTRY_PORT,
|
||||
SUBSPACES_UI_PORT,
|
||||
@@ -151,6 +152,26 @@ export const setInterfaces = sdk.setupInterfaces(async ({ effects }) => {
|
||||
|
||||
const certrelayReceipt = await certrelayMultiOrigin.export([certrelay])
|
||||
|
||||
const spacedMulti = sdk.MultiHost.of(effects, 'spaced-api-multi')
|
||||
const spacedMultiOrigin = await spacedMulti.bindPort(spacedRpcPort, {
|
||||
protocol: 'http',
|
||||
})
|
||||
const spacedApi = sdk.createInterface(effects, {
|
||||
name: i18n('Spaces API'),
|
||||
id: 'spaces-api',
|
||||
description: i18n(
|
||||
'JSON-RPC API served by the spaced daemon. Authenticated with the spaced RPC credentials (SPACED_RPC_USER / SPACED_RPC_PASSWORD from store.spacedAuth). spaced binds 0.0.0.0 so external processes can reach this endpoint.',
|
||||
),
|
||||
type: 'api',
|
||||
masked: false,
|
||||
schemeOverride: null,
|
||||
username: null,
|
||||
path: '',
|
||||
query: {},
|
||||
})
|
||||
|
||||
const spacedApiReceipt = await spacedMultiOrigin.export([spacedApi])
|
||||
|
||||
return [
|
||||
uiReceipt,
|
||||
explorerReceipt,
|
||||
@@ -158,5 +179,6 @@ export const setInterfaces = sdk.setupInterfaces(async ({ effects }) => {
|
||||
proverReceipt,
|
||||
registryReceipt,
|
||||
certrelayReceipt,
|
||||
spacedApiReceipt,
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user