Added basic Caddyfile

This commit is contained in:
barry 2024-02-19 14:09:17 -06:00
parent 14b21524bc
commit 76b9bea521
2 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,23 @@
{
auto_https off
}
http://n0xb0x.local:8080/docs {
uri strip_prefix /docs
reverse_proxy http://n0xb0x.local:8081
}
http://n0xb0x.local:8080/lnbits {
uri strip_prefix /lnbits
reverse_proxy http://n0xb0x.local:5000
}
http://n0xb0x.local:8080/rtl {
uri strip_prefix /rtl
reverse_proxy http://n0xb0x.local:3000
}
http://n0xb0x.local:8080/cockpit {
uri strip_prefix /cockpit
reverse_proxy http://n0xb0x.local:9090
}

View File

@ -5,7 +5,7 @@ ARG VERSION={{caddy_version}}
WORKDIR /app
RUN microdnf update -y \
&& microdnf install -y wget tar gzip \
&& microdnf install -y wget tar gzip nss-tools \
&& wget https://github.com/caddyserver/caddy/releases/download/v2.7.6/caddy_${VERSION}_linux_amd64.tar.gz \
&& wget https://github.com/caddyserver/caddy/releases/download/v2.7.6/caddy_${VERSION}_checksums.txt \
&& sha512sum --ignore-missing --check caddy_${VERSION}_checksums.txt \
@ -16,4 +16,4 @@ RUN microdnf update -y \
EXPOSE 8080 8443
CMD ["/app/caddy", "run", "--config", "/app/data/caddy.json"]
CMD ["/app/caddy", "run", "--config", "/app/data/Caddyfile"]