EZ Encryption Middleware Tutorial (Simple Version + Advanced Version)
This tutorial uses the example where the middleware and V2Board admin backend are on the same server (BaoTa panel).
If your backend and middleware are on different servers, the method is similar.
I. Beginners: Directly Download Release Binary (Recommended)
No need to install Go environment, just use the binary file compiled by the author.
1. Download Release Binary (AMD64 example)
# Switch to root directory
cd /root
# Grant execute permission (ez-api is the executable filename, you can change it freely)
chmod 777 ez-api
⚠️ Note: If your server is ARM architecture, please select the corresponding
arm64version on the Release page.
2. Configure .env file
Enter the directory and edit the configuration file:
nano .env
Reference configuration:
CodeBlock Loading...
3. BaoTa Process Guardian Manager
Add a process guardian to keep the middleware running persistently:
CodeBlock Loading...
BaoTa Process Guardian Manager
4. BaoTa Reverse Proxy
Create a new site (domain like ez.api), point it to the VPS, and configure reverse proxy:
CodeBlock Loading...
And apply for an SSL certificate.
Add static site
Set reverse proxy
5. Modify frontend configuration /src/config/index.js
CodeBlock Loading...
Modify frontend configuration file