Skip to content
Agentmart
Submit a tool

fc-nginx-website

Build, package, and deploy a static website (HTML/CSS/JS/images or any pre-built SPA output) on the function-compute service's "nginx" environment, which runs…

Skill by Reyvic925

IndexedMIT
Write a review

Chalk Labs

Need help deploying fc-nginx-website?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/reyvic925-fc-nginx-website

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Build, package, and deploy a static website (HTML/CSS/JS/images or any pre-built SPA output) on the function-compute service's "nginx" environment, which runs Aliyun FC's custom runtime (Debian 9, built-in Nginx 1.10.3) serving files from /code on port 9000. Use this when a user asks to host a static site, landing page, docs site, or built front-end (React/Vue/Vite "dist", Hugo/Jekyll output) and the deploy target is function-compute with environment="nginx". Covers the nginx.conf contract, zip layout, and a reference for the Main-process-managed Function Compute delivery flow. 在 function-compute 的 "nginx" 环境(阿里云 FC 自定义运行时, Debian 9,内置 Nginx 1.10.3,从 /code 提供服务,监听 9000 端口)上构建、打包并部署静态网站 (HTML/CSS/JS/图片,或任何预构建的 SPA 产物)。当用户需要托管静态站点、落地页、文档站或已构建 的前端(React/Vue/Vite 的 dist、Hugo/Jekyll 产物),且部署目标是 function-compute 且 environment="nginx" 时使用本指南。涵盖 nginx.conf 约定、zip 目录结构,以及由 Main 进程受控执行的 Function Compute 交付流程参考(发布由人工完成)。

Use cases: documents, frontend, devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/fc-nginx-website

What's inside

Skill name
fc-nginx-website
Description
Build, package, and deploy a static website (HTML/CSS/JS/images or any pre-built SPA output) on the function-compute service's "nginx" environment, which runs Aliyun FC's custom runtime (Debian 9, built-in Nginx 1.10.3) serving files from /code on port 9000. Use this when a user asks to host a static site, landing page, docs site, or built front-end (React/Vue/Vite "dist", Hugo/Jekyll output) and the deploy target is function-compute with environment="nginx". Covers the nginx.conf contract, zip layout, and a reference for the Main-process-managed Function Compute delivery flow. 在 function-compute 的 "nginx" 环境(阿里云 FC 自定义运行时, Debian 9,内置 Nginx 1.10.3,从 /code 提供服务,监听 9000 端口)上构建、打包并部署静态网站 (HTML/CSS/JS/图片,或任何预构建的 SPA 产物)。当用户需要托管静态站点、落地页、文档站或已构建 的前端(React/Vue/Vite 的 dist、Hugo/Jekyll 产物),且部署目标是 function-compute 且 environment="nginx" 时使用本指南。涵盖 nginx.conf 约定、zip 目录结构,以及由 Main 进程受控执行的 Function Compute 交付流程参考(发布由人工完成)。
License
MIT
Instructions
274 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (2)

  • .bundled-hash
  • SKILL.md

SKILL.md (first lines)

# Deploy a static website on function-compute (nginx)
# 在 function-compute 上部署静态网站(nginx)

## AutoClaw managed-delivery boundary (highest priority) / 受控交付边界(最高优先级)

When `website_delivery_start` or `AUTOCLAW_FUNCTION_COMPUTE_WEBSITE_PROTOCOL`
is active, this is an AutoClaw-managed delivery. **Do not call any
`/functionCompute` API, do not read/request/store/output a JWT, and do not run
the curl examples in this Skill.** Treat all API examples as protocol reference
only. Build and verify the project locally, then follow the managed protocol:
for supported nginx preview delivery, update `projects/projects.json` last and
let AutoClaw Main create/upload/publish through its controlled module. A human
owns formal publication.

当 `website_delivery_start` 或 `AUTOCLAW_FUNCTION_COMPUTE_WEBSITE_PROTOCOL`
生效时,本任务属于 AutoClaw 受控交付。**禁止调用任何 `/functionCompute` API,禁止读取、
索取、保存或输出 JWT,也禁止执行本 Skill 中的 curl 示例。** API 内容仅作协议参考。
只在本地完成构建与验证;受支持的 nginx 预览应最后更新 `projects/projects.json`,由
AutoClaw Main 的受控模块完成创建、上传和发布,正式发布始终由用户操作。

## 1. What this environment is / 环境说明

**English.** The `nginx` environment is a **static-file host**. It uses Aliyun
Function Compute's **custom runtime** (`runtime: custom`, Debian 9, ships
**Nginx 1.10.3**). Your uploaded zip is extracted to **`/code`** and served by
Nginx. There is **no application code and no request handler** — Nginx serves
files directly. Do NOT write a Node/Python server here; that is what the
`nodejs`/`python` environments are for.

The platform starts the container with this fixed command:

```
nginx -c /code/nginx.conf
```

So your zip **must** contain an `nginx.conf` at its root, and that config
**must** listen on the platform's port.

Fixed constraints (from the environment preset — do not fight these):

| Property / 属性 | Value / 值 |
|---|---|
| FC runtime | `custom` (Debian 9, Nginx 1.10.3) |
| Start command | `nginx -c /code/nginx.conf` (fixed by the platform) |
| Listen port / 监听端口 | **9000** (nginx must `listen 9000;`) |
| Code root / 代码目录 | **`/code`** (your zip extracts here) |
| Memory / 内存 | 512 MB |
| vCPU | 0.35 |
| Disk / 磁盘 | 512 MB |
| Timeout / 超时 | 60 s |
| Instance concurrency / 实例并发 | 20 |
| Max upload zip / 上传上限 | 50 MB (base64-decoded) |
| Filesystem / 文件系统 | read-only **except `/tmp`** — all Nginx temp/log/pid paths must point at `/tmp` |

**中文.** `nginx` 环境是**静态文件托管**。它使用阿里云函数计算的**自定义运行时**
(`runtime: custom`,Debian 9,内置 **Nginx 1.10.3**)。你上传的 zip 会被解压到
**`/code`** 并由 Nginx 直接提供服务。这里**没有应用代码,也没有请求处理函数**——
Nginx 直接读文件返回。不要在这里写 Node/Python 服务器(那是 `nodejs`/`python` 环境的用途)。

平台用固定命令 `nginx -c /code/nginx.conf` 启动容器,因此你的 zip **必须**在根目录
放一个 `nginx.conf`,且该配置**必须**监听平台端口 **9000**。容器文件系统**只读,
仅 `/tmp` 可写**,所以 Nginx 的 pid / 日志 / 各类 temp 路径都必须落在 `/tmp` 下。

## 2. The file-structure contract / 文件结构约定

Your zip is extracted to `/code`. The **zip root** (not a nested folder) must
contain `nginx.conf` and your static files:

```
mysite.zip
├── nginx.conf        # REQUIRED, at zip root -> /code/nginx.conf
├── index.html
├── styles.css
├── app.js
└── assets/
    └── logo.png
```

Rules / 规则:

- `nginx.conf` **must** be at the root, because the start command reads
  `/code/nginx.conf` literally. 必须放在根目录。
- Do **not** wrap everything in a top-level folder (e.g. `mysite/index.html`) —
  that would extract to `/code/mysite/...` and break `root /code;`. 不要多套一层目录。
- Reference files by paths relative to `/code`. Use `index.html` as the default
  document. 以 `/code` 为根,默认文档为 `index.html`。

## 3. Minimal working example / 最小可用示例

This is a complete, copy-pasteable site. Create these two files.

### `nginx.conf` (copy verbatim / 原样复制)

The `daemon off;`, `user root;`, `listen 9000;`, `root /code;`, and the `/tmp`
temp paths are all **required** for the FC custom runtime. Change the `server`
block body freely, but keep those lines.

```nginx
user root;
worker_processes 1;
daemon off;
pid /tmp/nginx.pid;
error_log /tmp/nginx-error.log warn;
events { worker_connections 1024; }
http {
    include /etc/nginx/mime.types;
    default_type application/octet-stream;
    access_log /tmp/nginx-access.log;
    client_body_temp_path /tmp/nginx-client-body;
    proxy_temp_path /tmp/nginx-proxy;
    fastcgi_temp_path /tmp/nginx-fastcgi;
    uwsgi_temp_path /tmp/nginx-uwsgi;
    scgi_temp_path /tmp/nginx-scgi;
    sendfile on;
    server {
        # FC custom runtime routes traffic to this port. Must be 9000.
        # FC 自定义运行时将流量转发到此端口,必须为 9000。
        listen 9000;
        server_name _;

From Reyvic925/tradingwebsite, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 19, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Reyvic925

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get fc-nginx-website running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying fc-nginx-website?

CallGet help
Cite this page

fc-nginx-website skill. Agent Mart. https://agentmart.dev/skills/reyvic925-fc-nginx-website (last updated 2026-10-24)