添加辅助自签名端口

This commit is contained in:
2026-03-14 17:14:57 +08:00
parent 454459b09f
commit 7dfed3f9a8
5 changed files with 45 additions and 1 deletions

27
README.md Normal file
View File

@@ -0,0 +1,27 @@
# Ingress
这里是本机 http 网关容器的配置,使用了 traefik 作为网关组件,可以自动化证书申请与更新
## 部署项目
1. 生成自签名证书
```bash
mkdir -p traefik/gen/certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout traefik/gen/certs/local.key -out traefik/gen/certs/local.crt \
-subj "/CN=*.lanhuip.com"
```
2. 创建 acme.json 文件
```bash
touch traefik/gen/acme.json
chmod 600 traefik/gen/acme.json
```
3. 启动项目
```bash
docker-compose up -d
```