1:升级系统:
sudo yum update
2:安装 EPEL repository:
sudo yum install epel-release
3:安装 Caddy:
sudo yum install caddy
4:文件
/usr/bin/caddy -conf /etc/caddy/caddy.conf
www.robinplus.com { # 同时启用 http 和 https 不会自动转跳
gzip
proxy / http://127.0.0.1:8080 {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
}
}
执行
/usr/bin/caddy -conf /etc/caddy/caddy.conf
systemctl enable caddy
systemctl start caddy
systemctl stop caddy
systemctl status caddy
wordpress 按照自己的规划修改路径,修改docker映射端口:8080(host):80 (container)
参考地址:https://blog.51cto.com/michaelkang/2362202
vi docker-compose.yml
version: '3.3'
......
ports:
- "8080:80"
...........
https://blog.51cto.com/michaelkang/1922968
https://diamondfsd.com/caddy-instand-nginx-support-https/
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。