Self Service Configuration and Deployment
Self Service deployment mainly involves the configuration and operation of Self Service nodes, which are key components connecting P2P networks with application services.
Environment Preparation
Minimum Server Configuration Requirements
CPU: 2 cores or more
Memory: 2GB RAM or more
Storage: 20GB available disk space
Operating System: Ubuntu 22.04 LTS or higher
Network: Stable internet connection, no public IP or open ports required
Dependency Software Installation
Directory Structure Description
selfservice/
├── selfservice.tar # Self Service node Docker image
├── config.json # Core configuration file
├── pango.conf # Node certificate configuration
├── docker-compose.yml # Docker Compose deployment file
└── data/ # Data directory (needs to be created)
├── logs/ # Log folder
├── mongo/ # MongoDB data directory
└── node/ # Node data directory
└── userkey.json # Self Service accountConfiguration Details
config.json - Core Configuration
This is the main configuration file for the Self Service node, controlling node runtime parameters:
Key Parameter Descriptions:
logLevel: Log level (debug/info/warn/error)mongo: MongoDB database connection configuration for storing node data and message cacheport: Self Service node listening portremoteService: Your application service address, supports HTTP/HTTPS
pango.conf - P2P Network Configuration
This file configures Self Service node connection parameters with RelayX Network:
Parameter Descriptions:
localsrvport: P2P network communication portt2trepeater: Network relay identifier, assigned by officialnodserverurl: Must match the port in config.jsonroutecert: Service certificate from Self Service certificate (Base64 encoded format)routecertexpired: Certificate expiration time (Unix timestamp, seconds)
docker-compose.yml - Container Orchestration Configuration
Docker Compose configuration file defining the complete service stack:
Deployment Process
Verify Deployment
Health Check Interface Response Description:
Status codes returned by the /health interface:
1: Startup successful, all components running normally
2: Database connection failed, check MongoDB configuration and connection
3: Node connection failed, check P2P network configuration and certificates
Also returns the number of registered Self Service personnel, including successfully registered and failed users.
Last updated