Skip to main content

Usage

Show subscription URL

Command to print the current subscription URL from the container environment:

cd /opt/3dp-manager && docker compose exec node env | grep SUB_URL | cut -d'=' -f2
Summary: prints the static subscription URL that can be used by clients. Works on both primary and intermediate servers.

Collect domains from multi-subscriptions

This utility extracts domains from subscriptions and generates a whitelist for the generator.

node get_domains.js
Summary: add a multi-subscription URL into the script and run the command — it outputs a list of domains. Node.js is required.

Using a custom whitelist

  1. Prepare a file in whitelist.txt format.
my_whitelist.txt
refersion.com
vk.com
miro.com
cloudflare.com
google.com
  1. Rename it to my_whitelist.txt and copy it to /opt/3dp-manager/app.
cd /opt/3dp-manager && docker cp ./app/my_whitelist.txt node:/app/my_whitelist.txt
Summary: adds your domain file into the application container. To immediately generate inbounds with the new list, run docker exec -it node sh and then node rotate.js.

Manual generation run

To create new inbounds, run the following commands in sequence:

cd /opt/3dp-manager
docker exec -it node sh
node rotate.js
Summary: performs an immediate generation of inbounds without affecting the scheduled rotation interval.