project

This site architecture

Astro · Nginx · HTTPS

The site you’re reading — design, development, and server deploy — was done by me. It’s both my personal homepage and the ops showcase I’m most comfortable pointing at.

Stack choices

  • Static-first: content in Markdown, Astro builds pure static pages — no database, no admin panel; fast, small attack surface, nearly zero upkeep;
  • Nginx as web server and reverse proxy, one place for the site and other services;
  • HTTPS with auto-renewed certificates;
  • Private area (diary) has no account system — HTTP Basic Auth at the Nginx layer. Enough, simple, secure.

Publish flow

Writing a post = adding a .md file. Push the build to the server and it’s live; the whole path can be scripted into one command.

你现在看到的这个网站,从设计、开发到服务器部署都由我自己完成。它既是我的个人主页,也是我最顺手的一个运维展示品。

技术选型

  • 静态优先:内容用 Markdown 撰写,Astro 构建成纯静态页面——没有数据库、没有后台,速度快、攻击面小、几乎零维护;
  • Nginx 作为 Web 服务器与反向代理,统一管理站点与其他服务;
  • HTTPS 证书自动续期;
  • 私密区域(日记)不做账号系统,直接在 Nginx 层用 HTTP Basic Auth 加锁——够用、简单、安全。

发布流程

写一篇文章 = 新建一个 .md 文件。构建产物推送到服务器即完成发布,整个流程可以脚本化成一条命令。