Use caddy to proxy
Caddy Usage and reference:https://doub.io/jzzy-2/
docker run -d -p 80:80 -e proxy=< the proxy site > -e host=< your domian or :80> jialezi/proxy-http
env:
1.proxy=< the proxy site >
example: proxy=https://www.baidu.com
2.host=< your domian or :80>
example: host=http://geeglo.ml or host=:80
(填域名默认自动申请SSL,与下面proxy-https重复)
eg:
docker run -d -p 82:80 -e proxy=https://www.baidu.com -e host=:80 jialezi/proxy-http
browse: http://ip:82
docker run -d -p 80:80 -p 443:443 -e proxy=< the proxy site> -e host=<https://your domian> -e email=[email protected] jialezi/proxy-https
!:before applying for an SSL certificate, be sure to resolve the domain name record in advance !:申请SSL之前必需先解析好域名,且80端口必需能够访问
env:
1.proxy=< the proxy site >
2.host=< your domian >
3.eamil=< your email > (to apply ssl)
eg:
docker run -d -p 80:80 -p 443:443 -e proxy=https://www.google.com -e host=https://geeglo.ml -e email=[email protected] jialezi/proxy-https
browse: https://geeglo.ml