feat: 添加 Let's Encrypt SSL 证书管理
- 新增独立 certbot 服务项目 - nginx 配置添加 HTTPS 8443 端口监听 - frpc.toml HTTPS 代理指向 nginx:8443 - 支持自动续签并重载 nginx - 共享 Docker volume 传递证书
This commit is contained in:
@@ -4,13 +4,17 @@ services:
|
||||
container_name: nginx-proxy
|
||||
ports:
|
||||
- "8081:80"
|
||||
- "4430:443"
|
||||
# 配置已内嵌于镜像(构建时 COPY 进 /etc/nginx),故不挂载 conf.d
|
||||
- "8443:8443"
|
||||
volumes:
|
||||
- certbot-certs:/etc/letsencrypt:ro
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- trim-default
|
||||
|
||||
volumes:
|
||||
certbot-certs:
|
||||
external: true
|
||||
|
||||
networks:
|
||||
trim-default:
|
||||
external: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user