← 返回 Skills 市场
mailo037

Publish Website Traefik

作者 Mailo037 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
31
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install publish-website-traefik
功能描述
Manages static website deployments to subdomains under *.sites.friendify.cloud using Traefik reverse proxy and Docker. Provides functions to deploy, list, an...
使用说明 (SKILL.md)

Publish Website via Traefik

This skill allows you to publish static websites to subdomains under *.sites.friendify.cloud using a Traefik reverse proxy and Docker.

How to Use

Example Usage:

To publish a website, you will run the `deploy_site.sh` script with two arguments:\
\
`./scripts/deploy_site.sh \x3Cpath_to_website_files> \x3Csubdomain_name>`\
\
**Example:**\
\
`./scripts/deploy_site.sh /data/.openclaw/workspace/landingpages/new-deutscheschuleonline my-german-school`\
\
This would deploy the website to `https://my-german-school.sites.friendify.cloud`.

Architecture: One Website, One Container

This skill operates on the principle of "one website per Docker container." When you deploy a website, a dedicated Nginx container is launched. Traefik, acting as a reverse proxy, routes traffic from your specified subdomain ({subdomain}.sites.friendify.cloud) to this container. This approach ensures:

  • Isolation: Each website runs independently, preventing conflicts.
  • Dynamic Routing: Traefik uses Docker labels to automatically configure routing, simplifying management.
  • Scalability: Individual websites can be scaled or updated without affecting others.

Managing Deployments

The skill provides the following commands for managing your website deployments:

Deploying a Website

To deploy a website, you will run the deploy_site.sh script with two arguments:

./scripts/deploy_site.sh \x3Cpath_to_website_files> \x3Csubdomain_name>

Example:

./scripts/deploy_site.sh /data/.openclaw/workspace/landingpages/new-deutscheschuleonline my-german-school

This would deploy the website to https://my-german-school.sites.friendify.cloud.

Listing Deployed Websites

To see all currently deployed websites managed by this skill, use the list_sites.sh script:

./scripts/list_sites.sh

This will display a list of subdomains and their corresponding URLs.

Deleting a Website

To remove a deployed website, use the delete_site.sh script, providing the subdomain name:

./scripts/delete_site.sh \x3Csubdomain_name>

Example:

./scripts/delete_site.sh my-german-school

This will stop and remove the associated Docker container and its resources, effectively undeploying the website.

安全使用建议
Review before installing. Use this only on a deployment host where the agent is allowed to manage Docker. Before each deploy, verify the exact local directory and subdomain, and avoid pointing it at broad or private folders. Before deletion, confirm the directory and containers that will be removed. Consider adding path allowlists, subdomain validation, image pinning, and explicit confirmation prompts.
功能分析
Type: OpenClaw Skill Name: publish-website-traefik Version: 1.0.0 The skill provides scripts for deploying static websites using Docker and Traefik, but contains significant shell injection vulnerabilities in `scripts/deploy_site.sh` and `scripts/delete_site.sh`. Specifically, the `SUBDOMAIN` and `WEBSITE_PATH` arguments are used within double-quoted strings and heredocs without sanitization, allowing for arbitrary command execution (e.g., via backticks or command substitution) when the variables are evaluated by the shell. While the functionality aligns with the stated purpose of website management, these flaws could be exploited to execute unauthorized commands on the host system.
能力评估
Purpose & Capability
The purpose and code are coherent for publishing static sites, but the deploy script can copy any supplied local path into a publicly reachable website with no built-in path allowlist, preview, or confirmation step.
Instruction Scope
The instructions present deploy, list, and delete commands directly, but they do not require explicit confirmation before public publishing or destructive deletion, nor do they describe input validation boundaries.
Install Mechanism
There is no install spec and metadata declares no required binaries, while the scripts depend on Docker, Docker Compose, jq, and an unpinned nginx:alpine container image.
Credentials
The skill mutates the local Docker environment by creating networks, starting containers, and copying local files into containers that Traefik may expose publicly.
Persistence & Privilege
Deployments persist as running Docker containers and as entries in deployments.json; the delete script trusts that persistent state to choose a directory for docker compose down -v and rm -rf.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install publish-website-traefik
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /publish-website-traefik 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with deploy, list, and delete functionality.
元数据
Slug publish-website-traefik
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Publish Website Traefik 是什么?

Manages static website deployments to subdomains under *.sites.friendify.cloud using Traefik reverse proxy and Docker. Provides functions to deploy, list, an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 31 次。

如何安装 Publish Website Traefik?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install publish-website-traefik」即可一键安装,无需额外配置。

Publish Website Traefik 是免费的吗?

是的,Publish Website Traefik 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Publish Website Traefik 支持哪些平台?

Publish Website Traefik 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Publish Website Traefik?

由 Mailo037(@mailo037)开发并维护,当前版本 v1.0.0。

💬 留言讨论