Hass.io Caddy add-on
https://github.com/korylprince/hassio-caddy

/share/caddy/Caddyfile

   192.168.1.133:82 {
    root /share/Download
    browse
}

   https://home.8123.io {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.133:8123 {
        transparent
        websocket
    }
    log stdout
    errors stderr
}

   https://home.8123.io:78 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.94:88 {
        transparent
        websocket
    }
    log stdout
    errors stderr
}

   https://home.8123.io:76 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.199/kodexplorer {
        transparent
        websocket
        header_downstream -X-Frame-Options
    }
    log stdout
    errors stderr
}

   https://home.8123.io:3001 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.133:3000 {
        transparent
        websocket
    }
    log stdout
    errors stderr
}
   https://home.8123.io:7680 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.133:7681 {
        transparent
        websocket
    }
    log stdout
    errors stderr
}

   https://home.8123.io:8320 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.133:8321 {
        transparent
        websocket
    }
    log stdout
    errors stderr
}

   https://home.8123.io:9001 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.94:9000 {
        transparent
        websocket
        header_downstream -X-Frame-Options
    }
    log stdout
    errors stderr
}

   https://home.8123.io:6051 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.133:6052 {
        transparent
        websocket
        header_downstream -X-Frame-Options
    }
    log stdout
    errors stderr
}

   https://home.8123.io:5151 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.133:5050 {
        transparent
        websocket
    }
    log stdout
    errors stderr
}

   https://home.8123.io:8130 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.133:8128 {
        transparent
        websocket
    }
    log stdout
    errors stderr
}

   https://home.8123.io:1881 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.133:1880 {
        transparent
        websocket
    }
    log stdout
    errors stderr
}

   https://home.8123.io:4279 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.2 {
        transparent
        websocket
        header_downstream -X-Frame-Options
    }
    log stdout
    errors stderr
}

   https://home.8123.io:32410 {
    tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
        alpn http/1.1
    }
    proxy / 192.168.1.198:32400 {
        transparent
        websocket
        header_downstream -X-Frame-Options
    }
    log stdout
    errors stderr
}

https://my.8123.io:8123 {
tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
alpn http/1.1
}

https://my.8123.io:5252 {
tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
alpn http/1.1
}

https://my.8123.io:88 {
tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
alpn http/1.1
}
proxy / 192.168.1.94:88 {
transparent
websocket
}
log stdout
errors stderr
}

https://my.8123.io:32400 {
tls /ssl/star.8123.io.crt /ssl/star.8123.io.key {
alpn http/1.1
}
proxy / 192.168.1.198:32400 {
transparent
websocket
}
log stdout
errors stderr
}

文档更新时间: 2020-11-16 01:13   作者:Tristan