Sign inSign up

cloaks/nginx

By cloaks

•Updated 8 months ago

Image
0

65

cloaks/nginx repository overview

⁠Nginx Reverse Proxy for GitHub Pages

这是一个轻量级的 Nginx 反向代理镜像,用于将自定义域名代理到 GitHub Pages。

⁠📦 镜像标签

标签描述代理目标
yiiewang.github.io博客代理https://yiiewang.github.io⁠

⁠🚀 快速使用

# 拉取镜像
docker pull cloaks/nginx:yiiewang.github.io

# 运行容器 (HTTP)
docker run -d --name nginx-proxy \
  --restart unless-stopped \
  -p 80:80 \
  cloaks/nginx:yiiewang.github.io

# 运行容器 (带 SSL 证书)
docker run -d --name nginx-proxy \
  --restart unless-stopped \
  -p 80:80 \
  -p 443:443 \
  -v /etc/letsencrypt:/etc/letsencrypt:ro \
  cloaks/nginx:yiiewang.github.io

⁠🔧 功能特性

  • ✅ 反向代理到 GitHub Pages
  • ✅ Gzip 压缩优化
  • ✅ 健康检查端点 (/health)
  • ✅ 自动重启策略
  • ✅ 基于 Alpine Linux,镜像体积小 (~53MB)

⁠📋 端口说明

端口协议说明
80HTTPWeb 服务
443HTTPSSSL 加密 (需挂载证书)

⁠🔒 SSL 配置

如需启用 HTTPS,请先在服务器上安装 Let's Encrypt 证书:

# 安装 certbot
apt-get install certbot

# 申请证书
certbot certonly --standalone -d your-domain.com

# 证书路径
# /etc/letsencrypt/live/your-domain.com/fullchain.pem
# /etc/letsencrypt/live/your-domain.com/privkey.pem

⁠📊 健康检查

curl http://localhost/health
# 返回: OK

⁠🏗️ 构建信息

  • 基础镜像: nginx:alpine
  • 架构: linux/amd64
  • 维护者: cloaks

⁠📝 更新日志

⁠yiiewang.github.io
  • 初始版本
  • 代理 yiiewang.github.io 博客
  • 支持 HTTP/HTTPS

GitHub: cloakscn/cloakscn.github.io⁠

Tag summary

Content type

Image

Digest

sha256:937044830…

Size

21.6 MB

Last updated

8 months ago

docker pull cloaks/nginx:yiiewang.github.io