添加辅助自签名端口
This commit is contained in:
27
README.md
Normal file
27
README.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user