/t/1100471
装的是 docker 版本 caddy 与 minio.
这是之前能打开的一个地址,现在无法打开。
https://image.99881122.xyz/test/test.jpg
Caddyfile 文件如下,用的是 cf 的 15 年的证书
image.99881122.xyz {
tls /srv/99881122.xyz/99881122.xyz.pem /srv/99881122.xyz/99881122.xyz.key
encode gzip
reverse_proxy minio:9000
}
console.99881122.xyz {
tls /srv/99881122.xyz/99881122.xyz.pem /srv/99881122.xyz/99881122.xyz.key
encode gzip
reverse_proxy minio:9001
}
caddy docker compose 文件
version: "3.9"
services:
caddy:
build:
# context: .
# dockerfile: Dockerfile
image: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- ./data:/data
- ./config:/config
minio docker compose
version: '3'
services:
minio:
image: minio/minio:latest
container_name: minio
hostname: "minio"
# ports:
# - 9000:9000 # api 端口
# - 9001:9001 # 控制台端口
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: xx
MINIO_BROWSER_LOGIN_ANIMATION: off # 动画
MINIO_BROWSER_REDIRECT_URL: https://console.99881122.xyz
volumes:
- /hdd/minio/data:/data
- /hdd/minio/config:/root/.minio
command: server /data --address ":9000" --console-address ":9001"
restart: always
networks:
- caddy_bridge
cf 的加密模式设置的是严格
SSL/TLS 加密
当前加密模式:
完全(严格)
感觉配置好像没啥问题,却打不开网站