
Platinum Sponsor
CEOACC.COM | Wholesale Social Media Accounts from the Source
Buy Facebook accounts, Wholesale Instagram accounts, Buy Twitter accounts, Buy TikTok accounts, Buy Telegram accounts, Buy Apple IDs, Buy Google Gmail accounts


Last Updated: 2026-07-26
If you have not chosen a deployment method yet, start with Deployment Overview and Selection Guide.
This document covers deploying the official compiled artifact on an aaPanel/BT panel server.
Features:
git clone the source code on the servergo build / pnpm run build on the serverInstall in aaPanel:
tar)This deployment method does not require Git, Go, or a Node.js build environment.
mkdir -p /www/wwwroot/dujiao-next
cd /www/wwwroot/dujiao-nextDownload the archive matching your architecture from Releases.
Naming follows GoReleaser conventions: dujiao-next_<tag>_Linux_<arch>.tar.gz, for example dujiao-next_v1.4.0_Linux_x86_64.tar.gz (use _Linux_arm64.tar.gz on arm64 machines).
wget -O dujiao.tar.gz https://github.com/dujiao-next/dujiao-next/releases/download/v1.4.0/dujiao-next_v1.4.0_Linux_x86_64.tar.gz
tar -xzf dujiao.tar.gzAfter extraction the directory should contain:
dujiao-next (the executable with embedded frontends)config.yml.exampleREADME.mdNote for v1.3.x users
The old setup required downloading three archives (API, User, Admin) and creating two sites. Now there is one archive; the frontends live inside the program, and there are no user/dist or admin/dist directories.
cd /www/wwwroot/dujiao-next
cp config.yml.example config.yml
chmod +x ./dujiao-next
# edit config.yml⚠️ Critical security note: before going live, change
app.secret_key,jwt.secret, anduser_jwt.secretseparately inconfig.yml.Use high-entropy strings of at least 32 characters, keep all three different, never retain template defaults, and back up
app.secret_keywith the database.
Also change the admin entry path (the default /admin is a prime scanner target):
web:
admin_path: "/dj-mgmt-7x9k2" # pick your own stringAdd the start command in aaPanel's PM2/Supervisor:
/www/wwwroot/dujiao-next/dujiao-nextSet the working directory to:
/www/wwwroot/dujiao-nextIt is also recommended to set these environment variables on the process (to initialize the default administrator and avoid weak default credentials):
DJ_DEFAULT_ADMIN_USERNAME=adminDJ_DEFAULT_ADMIN_PASSWORD=<your strong password>
After starting, check the logs — this line confirms the frontends were embedded correctly:
Embedded SPAs: admin (/dj-mgmt-7x9k2), user (/)When the admins table is empty, the first startup attempts to create a default administrator:
adminStrongly recommended: change the password immediately after your first login. If you lose it, run
./dujiao-next admin reset-password --username adminin the program directory.
If you set DJ_DEFAULT_ADMIN_USERNAME / DJ_DEFAULT_ADMIN_PASSWORD in PM2/Supervisor, those values take precedence.
Without those environment variables, you can also configure it in config.yml:
bootstrap:
default_admin_username: admin
default_admin_password: <your strong password>The values are read on first startup to initialize the administrator.
You only need one site:
shop.example.comIn the site's "Reverse Proxy" settings, forward the whole site to http://127.0.0.1:8080.
If you edit the Nginx configuration by hand, it looks like this:
server {
listen 443 ssl http2;
server_name shop.example.com;
ssl_certificate /path/to/fullchain.pem;
ssl_certificate_key /path/to/privkey.pem;
client_max_body_size 50m;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}Access:
https://shop.example.comhttps://shop.example.com/<web.admin_path>What got simpler
The old setup needed two sites and two domains, plus separate proxy rules for /api/, /uploads/, /sitemap.xml, and /robots.txt. All of that is now handled by one program behind a single site-wide proxy.
db/, uploads/, and config.ymldujiao-next binaryThe frontends update along with the binary — no separate static files to replace.
config.yml/admin for web.admin_pathserver.mode: release in production