Get Started¶
This section gets you from download or clone to a working /sub endpoint with a
minimal, safe configuration. Follow the path that matches your deployment style.
Choose your path¶
- Run the published image with
docker run, or use Docker Compose. - Mount
example/confor your own config into/app/conf. - Expose the bind port.
Continue at Docker Deployment.
- Download the release archive or Debian package.
- Use the bundled
conf/andschema/as a starting point. - Run the binary from the extracted folder or your PATH.
Continue at Installation.
- Install Rust with rustup.
- Build and run the binary.
- Edit
conf/pref.tomlfor your environment.
Continue at Installation.
Note
For a quick start, Docker or release packages are the fastest.
Baseline configuration¶
At minimum, make sure these fields are set in conf/pref.toml:
common.schemacommon.clash_rule_basecommon.surge_rule_basecommon.default_urlor a plan to passurlcommon.api_access_tokenif you plan to use the Web UI or/apinetwork.allowed_domainwhen using remote subscriptions
Warning
The Web UI and /api require common.api_access_token. If you plan to use insert profiles, this token is also required to include inserts. Keep pref.toml private (do not commit or share it).
You can generate a token with:
Minimal configuration scaffold
Run¶
Verify¶
Web UI¶
Open the control panel in your browser:
http://127.0.0.1:25500/- Enter the server URL (same origin) and
common.api_access_tokento sign in. - Use Logout to clear credentials stored in the browser.
Next steps¶
- Review General Settings.
- Define proxy sources in Proxy.
- Troubleshoot errors in Troubleshooting.