Install API Server - Minimal Installation
Get the installation code.
Execute the installation script.
git clone [email protected]:WhiteRiverBay/beaver-payment-install.git
Follow the prompts in the script to complete the configuration.
1 - Generating RSA Key Pair
..+++++++++++++++++++++++++++++++++++++++++++++*......................+.......+........+...+.+...+.....+.+..+...+.......+........+.......+..+.+.........+...+..+............+......+...+.......+...+..+....+........+.+..+...+....+.....+.+..+....+...+...........+......+.+.........+...+++++++++++++++++++++++++++++++++++++++++++++*.+..............+++++
.....+...+++++++++++++++++++++++++++++++++++++++++++++*.+.....+......+...+.+..+..................+++++++++++++++++++++++++++++++++++++++++++++*.+...+...................+...+.........+.....+...+.+.....+............+.........................+.....+...+....+...+........+......+...............+......+.......+............+......+.....+.............+..............+............+......+.......+..+....+.........+...............+.....+.+.........+...+..+.+...........+.........+......+.........+......+.............+..+.+.................+.......+.........+..+.......+++++
writing RSA key
Please keep the private.pem file safe and secure
public.pem saved in .config successful
Generating Google Authenticator Secret:
Google Authenticator Secret: AEMBWVASLZLV67TN
Generate Notify Secret:
Generating .env file
Please enter the redis password, if you don't know, just press enter
123456
Do you want to set telegram bot? (true/false):
false
Do you want to set default callback url now? (true/false):
false
Generating .env file successful
Please keep the .env file safe and secure
If you want to change the configuration, you can edit the .env file directly
Please run the server now
docker-compose -f docker-compose-local.yml up -d
Do you want to run the server now? (yes/no):
no
After completing the above steps, a locally deployed .env file will be generated. If you select “yes” during the “Do you want to run the server now?” prompt, the system will attempt to start immediately.
Please note, after installation, a private.pem file will be generated in the same directory. This is the administrator’s private key for gathering funds. You can save it on a separate USB drive or encrypt it and store it on Google Drive.
Start the service after configuration.
docker-compose -f docker-compose-local.yml up -d
Check the logs.
docker logs -f upayapi
Access the API.
curl -vX GET http://localhost:8080
If the API returns “ok,” it indicates that the server has started successfully. An example is shown below:
curl -vX GET http://localhost:8080
Note: Unnecessary use of -X or --request, GET is already inferred.
* Host localhost:8080 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8080...
* Connected to localhost (::1) port 8080
> GET / HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/8.5.0
> Accept: */*
>
< HTTP/1.1 200
< Vary: Origin
< Vary: Access-Control-Request-Method
< Vary: Access-Control-Request-Headers
< Content-Type: text/plain;charset=ISO-8859-1
< Content-Length: 2
< Date: Fri, 03 Jan 2025 22:33:06 GMT
<
* Connection #0 to host localhost left intact
ok
Last updated