Step-by-step guide to building a DNL subdomain distribution platform (vps8 openapi compatible version)

Prerequisites:

  1. At least 2 domains: one as the website domain and another for distribution (of course, you can use more if needed).
  2. A vps8.zz.cd account with an APIKEY generated.
  3. If you don’t have your own server, you can use VPS8’s daily check-in chicken (sign-in VPS) together with the VPS8 Tunnel feature. It’s recommended to use a PRO plan, but the Standard plan also works.

Getting Started:

  1. Use VNC or another SSH tool to log in to your server.
    Install Docker:
  curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh && systemctl start docker && systemctl enable docker
  1. Install git. If your server already has git, skip this step.
apt install git -y
  1. Deployment
git clone https://github.com/chengdada123/opendomain.git
cd opendomain

cp .env.example .env
  1. Edit environment variables
nano  .env

Key settings to modify:

VPS8_OPENAPI_URL=https://vps8.zz.cd
VPS8_OPENAPI_USER=client
VPS8_OPENAPI_KEY= your-apikey

Default Nameservers

DEFAULT_NS1=ns1.vps8.zz.cd
DEFAULT_NS2=ns2.vps8.zz.cd

And for third-party login:
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret

GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-google-client-secret

NODELOC_CLIENT_ID=your-nodeloc-client-id
NODELOC_CLIENT_SECRET=your-nodeloc-client-secret

Email configuration:

MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=your-app-password
[email protected]

  1. Start building
bash  docker-deploy.sh

If everything goes smoothly, your Docker instance should now be running.

  1. Use VPS8’s tunnel feature


Once your certificate is active, you should be able to access the service.

16 Likes

NL makes everything better with you

2 Likes

So much useful info! :xhj006:

Support for Legend Bro

1 Like

Wow, everyone here is amazing.

Thanks to the original poster for sharing these technical insights.

Quickly set up an implementation.

You’re awesome! Gotta learn from you.

Impressive!

1 Like

Thanks for sharing

Thanks for sharing.

Thanks for sharing your expertise, legend!

The load on the free VPS I exchanged seems a bit high.
It’s often above 6.

Thanks a lot for sharing this detailed setup guide.

No one wants to give it a try?

Thanks, bro, for sharing—saving this for later.

1 Like

Thanks for sharing, the content is really helpful!

Evan’s Marvis

Thanks

多谢分享