PasarGuard 的响应式订阅页面模板。
- 语言:
en、fa、zh、ru - 用户可在界面中切换语言
- 响应式布局
- 深色模式
- 连接链接 QR 码
- 一键复制链接和配置,Base64 复制仅在 QR 弹窗中提供
- WireGuard 链接可复制为原生配置,也可下载为
.conf - 外观自定义
| 订阅模板版本 | PasarGuard 面板版本 |
|---|---|
v2 |
v3 |
| 其他版本 | v2、v1 |
运行安装脚本(选择默认语言):
curl -fsSL https://raw.githubusercontent.com/PasarGuard/subscription-template/main/install.sh | sudo bash -s -- --lang zh--lang 支持:en、fa、zh、ru
--version 支持:latest(默认)或像 v2.0.0 这样的发布标签
如需安装指定版本,请添加 --version <tag>。
- 下载模板:
sudo mkdir -p /var/lib/pasarguard/templates/subscription
sudo wget -O /var/lib/pasarguard/templates/subscription/index.html \
https://github.com/PasarGuard/subscription-template/releases/latest/download/zh.html- 在
/opt/pasarguard/.env中配置 PasarGuard:
CUSTOM_TEMPLATES_DIRECTORY="/var/lib/pasarguard/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"- 重启:
pasarguard restartgit clone https://github.com/PasarGuard/subscription-template.git
cd subscription-template
bun install
bun run build使用生成的文件:
sudo cp dist/index.html /var/lib/pasarguard/templates/subscription/index.html在 .env 中设置下面的值,然后重新构建:
VITE_PRIMARY_COLOR_LIGHT=oklch(0.48 0.11 250)
VITE_PRIMARY_COLOR_DARK=oklch(0.60 0.12 250)
VITE_BORDER_RADIUS=0.65rem
