安装方式
命令行安装
在项目根目录执行以下命令,完成 Skill 安装。
npx bzskills add xixu-me/skills --skill secure-linux-web-hosting Use when setting up, hardening, or reviewing a cloud server for self-hosting, including DNS, SSH, firewalls, Nginx, static-site hosting, reverse-proxying an app, HTTPS with Let's Encrypt or ACME clients, safe HTTP-to-HTTPS redirects, or optional post-launch network tuning such as BBR.
115k
下载量
命令行安装
在项目根目录执行以下命令,完成 Skill 安装。
npx bzskills add xixu-me/skills --skill secure-linux-web-hosting name: secure-linux-web-hosting
description: Use when setting up, hardening, or reviewing a cloud server for self-hosting, including DNS, SSH, firewalls, Nginx, static-site hosting, reverse-proxying an app, HTTPS with Let's Encrypt or ACME clients, safe HTTP-to-HTTPS redirects, or optional post-launch network tuning such as BBR.Use this skill to turn a cloud server into a safely reachable web host
without leaning on stale distro-specific memory or outdated Debian-10-era
tutorials.
This skill keeps the familiar teaching arc of a beginner-friendly server guide,
but turns it into a reusable operator workflow:
Before giving actionable commands, identify the distro family and verify the
current package names, service units, config paths, and ACME-client guidance
against official documentation for the user's distro and chosen tools.
Open references/workflow-map.md first for the
phase sequence, then open the narrower reference file you need.
Use this skill when the user mentions any of the following:
acme.sh, certificate renewal, or redirectingHTTP to HTTPS
Do not use this skill for:
actual problem
or platform-design treatment
Start by identifying:
If the distro is unknown, ask for it or have the user inspect /etc/os-release
before giving concrete package or service commands.
Use bundled references for routing, then verify details against live official
docs before giving commands that depend on current distro behavior.
Always verify:
If you cannot verify a detail, say so and give high-level guidance instead of
pretending the old Debian tutorial path is universal.
Walk through the phases in this order unless the user is explicitly asking for
review or remediation of an existing setup:
Do not collapse the static-site branch and reverse-proxy branch into one
default answer. Pick the branch that matches the user's goal.
Treat these as hard stop checks:
root SSH login until key-based login works in a second SSH session.
and the HTTP site or proxy path works as expected.
Always distinguish:
For a fresh setup, provide:
For a hardening or troubleshooting review, provide:
distro but not another
Use references/workflow-map.md for the phase map,
branching logic, and validation order.
Use references/distro-routing.md when distro
family, package manager, firewall tooling, or config layout matters.
Use references/nginx-patterns.md when the user
needs the static-site branch or the reverse-proxy branch.
Use references/security-and-tls.md for SSH
hardening sequence, firewall posture, certificate issuance, renewal, and
redirect timing.