Caddy反代Rancher

方缘之道 / 2019-07-09 18:11

部署Rancher

docker run -d --restart=unless-stopped -p 20080:80 -p 20443:443 rancher/rancher  

部署Caddy

可以参考其他项目Caddy部署方式

# Caddyfile    rancher.godu.dev {     gzip     tls root@ysicing.net     log / /var/log/caddy/rancher.log "{remote} {when} {method} {uri} {proto} {status} {size} {>User-Agent} {latency}" {          rotate_size 50          rotate_age  90          rotate_keep 20          rotate_compress          }        header / {          Strict-Transport-Security "max-age=31536000;includeSubDomains;preload"          Access-Control-Allow-Origin  *          Access-Control-Allow-Methods "GET, POST, OPTIONS"          -Server      }      proxy / http://10.147.20.32:20080 {  	insecure_skip_verify          transparent          websocket      }  }  

Shared via Inoreader