go caddy config - sjqzhang/go-fastdfs GitHub Wiki

go-caddy an alternative Nginx

modify Caddyfile

  • HTTP basic:
xxxx.com:80 {
    proxy /  127.0.0.1:8080 {
        transparent
    }
}
  • HTTPS
xxxx.com:443 {
    gzip # 
    tls
    proxy /  127.0.0.1:8080 {
        transparent
    }
}

For more click doc