mirror of
https://github.com/Permissionless-Software-Foundation/x402-base-facilitator.git
synced 2026-09-21 16:52:01 -07:00
fix(config): Added webRTC port & connection preference reporting
This commit is contained in:
+3
-1
@@ -122,7 +122,9 @@ class Server {
|
|||||||
console.log('\nConfiguration:')
|
console.log('\nConfiguration:')
|
||||||
console.log(`Circuit Relay: ${this.config.isCircuitRelay}`)
|
console.log(`Circuit Relay: ${this.config.isCircuitRelay}`)
|
||||||
console.log(`IPFS TCP port: ${this.config.ipfsTcpPort}`)
|
console.log(`IPFS TCP port: ${this.config.ipfsTcpPort}`)
|
||||||
console.log(`IPFS WS port: ${this.config.ipfsWsPort}\n`)
|
console.log(`IPFS WS port: ${this.config.ipfsWsPort}`)
|
||||||
|
console.log(`IPFS WebRTC port: ${this.config.ipfsWebRtcPort}`)
|
||||||
|
console.log(`Connection preference: ${this.config.connectPref}\n`)
|
||||||
|
|
||||||
return app
|
return app
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Vendored
+1
@@ -132,6 +132,7 @@ export default {
|
|||||||
ipfsTcpPort: process.env.IPFS_TCP_PORT ? process.env.IPFS_TCP_PORT : 4001,
|
ipfsTcpPort: process.env.IPFS_TCP_PORT ? process.env.IPFS_TCP_PORT : 4001,
|
||||||
ipfsWsPort: process.env.IPFS_WS_PORT ? process.env.IPFS_WS_PORT : 4003,
|
ipfsWsPort: process.env.IPFS_WS_PORT ? process.env.IPFS_WS_PORT : 4003,
|
||||||
ipfsWebRtcPort: process.env.IPFS_WEB_RTC_PORT ? process.env.IPFS_WEB_RTC_PORT : 4005,
|
ipfsWebRtcPort: process.env.IPFS_WEB_RTC_PORT ? process.env.IPFS_WEB_RTC_PORT : 4005,
|
||||||
|
connectPref: process.env.CONNECT_PREF, // Used in helia-coord to select connection preference.
|
||||||
|
|
||||||
// Settings for production, using external go-ipfs node.
|
// Settings for production, using external go-ipfs node.
|
||||||
isProduction: process.env.SVC_ENV === 'prod' ? true : false,
|
isProduction: process.env.SVC_ENV === 'prod' ? true : false,
|
||||||
|
|||||||
@@ -66,9 +66,6 @@ RUN npm install
|
|||||||
# Generate the API docs
|
# Generate the API docs
|
||||||
RUN npm run docs
|
RUN npm run docs
|
||||||
|
|
||||||
# Expose the port the API will be served on.
|
|
||||||
EXPOSE 5010
|
|
||||||
|
|
||||||
# Start the application.
|
# Start the application.
|
||||||
#COPY start-production.sh start-production.sh
|
#COPY start-production.sh start-production.sh
|
||||||
CMD ["./start-production.sh"]
|
CMD ["./start-production.sh"]
|
||||||
|
|||||||
@@ -26,9 +26,12 @@ services:
|
|||||||
links:
|
links:
|
||||||
- mongo-ipfs-service
|
- mongo-ipfs-service
|
||||||
ports:
|
ports:
|
||||||
- '5010:5010' # <host port>:<container port>
|
# <host port>:<container port>
|
||||||
- '4001:4001'
|
- '5010:5010' # REST API
|
||||||
- '4003:4003'
|
- '4001:4001' # TCP
|
||||||
|
- '4003:4003' # Websockets
|
||||||
|
- '4005:4005' # WebRTC
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ../data/ipfsdata:/home/safeuser/ipfs-service-provider/.ipfsdata
|
- ../data/ipfsdata:/home/safeuser/ipfs-service-provider/.ipfsdata
|
||||||
- ./start-production.sh:/home/safeuser/ipfs-service-provider/start-production.sh
|
- ./start-production.sh:/home/safeuser/ipfs-service-provider/start-production.sh
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export IPFS_HOST=172.17.0.1
|
|||||||
export IPFS_API_PORT=5001
|
export IPFS_API_PORT=5001
|
||||||
export IPFS_TCP_PORT=4001
|
export IPFS_TCP_PORT=4001
|
||||||
export IPFS_WS_PORT=4003
|
export IPFS_WS_PORT=4003
|
||||||
|
export IPFS_WEB_RTC_PORT=4005
|
||||||
# Set the debug level for helia-coord. 0-3.
|
# Set the debug level for helia-coord. 0-3.
|
||||||
# 0 = no debug logs. 3 = maximum debug logs.
|
# 0 = no debug logs. 3 = maximum debug logs.
|
||||||
export DEBUG_LEVEL=0
|
export DEBUG_LEVEL=0
|
||||||
|
|||||||
Reference in New Issue
Block a user