Subs Server: A server for managing subscriptions
654
Subs Server is a lightweight HTTP server for serving base64-encoded subscription files from the local filesystem. It watches files for changes and provides customizable HTTP headers for clients.
vmess://, vless://, ss://, trojan://, etc.).http(s)://... links.subs-server \
--location ./subs \
--port 2115 \
--debug
docker run -d -p 2115:2115 \
-e LOCATION=/subs \
-v $(pwd)/subs:/subs \
kutovoys/subs-server
services:
subs-server:
image: kutovoys/subs-server
container_name: subs-server
restart: always
ports:
- "2115:2115"
volumes:
- ./subs:/subs
environment:
LOCATION: /subs
DEBUG: "true"
Configuration can be set via CLI flags or environment variables.
| Parameter | CLI Flag | Environment Variable | Default | Description |
|---|---|---|---|---|
| Files source location | --location, -l | LOCATION | — | Path to the directory with subscription files |
| Source type | --source, -s | SOURCE | filesystem | Currently only filesystem is supported |
| Host | --host, -h | HOST | 0.0.0.0 | Host for the HTTP server |
| Port | --port, -p | PORT | 2115 | Port for the HTTP server |
| Debug mode | --debug, -d | DEBUG | false | Enables debug output and endpoint listing |
| Profile title | --profile-title | PROFILE_TITLE | Subs-Server | Base64-encoded and sent as a header |
| Update interval | --profile-update-interval | PROFILE_UPDATE_INTERVAL | 12 | Sent as a header, in hours |
| Profile page URL | --profile-web-page-url | PROFILE_WEB_PAGE_URL | https://github.com/kutovoys/subs-server | Sent as a header |
| Support URL | --support-url | SUPPORT_URL | https://github.com/kutovoys/subs-server | Sent as a header |
| Version | --version | — | — | Print version and exit |
If you place a file test.txt inside the ./subs directory with the content:
vmess://example
https://some-remote-url.com/encoded.txt
and run the server, visiting http://localhost:2115/test will return a single base64-encoded response that includes:
vmess://example line.https://some-remote-url.com/encoded.txt.Contributions to Subs Server are warmly welcomed. Whether it's bug fixes, new features, or documentation improvements, your input helps make this project better. Here's a quick guide to contributing:
Happy contributing! If you're new to this, GitHub's guide on Creating a pull request is an excellent resource.
For secure and reliable internet access, we recommend BlancVPN. Use promo code TRYBLANCVPN for 15% off your subscription.
Content type
Image
Digest
sha256:f6bf532db…
Size
7.5 MB
Last updated
over 1 year ago
docker pull kutovoys/subs-server