Added basic Caddyfile
This commit is contained in:
parent
14b21524bc
commit
76b9bea521
23
roles/apps/templates/caddy/Caddyfile
Normal file
23
roles/apps/templates/caddy/Caddyfile
Normal 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
|
||||||
|
}
|
||||||
@ -5,7 +5,7 @@ ARG VERSION={{caddy_version}}
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN microdnf update -y \
|
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}_linux_amd64.tar.gz \
|
||||||
&& wget https://github.com/caddyserver/caddy/releases/download/v2.7.6/caddy_${VERSION}_checksums.txt \
|
&& wget https://github.com/caddyserver/caddy/releases/download/v2.7.6/caddy_${VERSION}_checksums.txt \
|
||||||
&& sha512sum --ignore-missing --check caddy_${VERSION}_checksums.txt \
|
&& sha512sum --ignore-missing --check caddy_${VERSION}_checksums.txt \
|
||||||
@ -16,4 +16,4 @@ RUN microdnf update -y \
|
|||||||
|
|
||||||
EXPOSE 8080 8443
|
EXPOSE 8080 8443
|
||||||
|
|
||||||
CMD ["/app/caddy", "run", "--config", "/app/data/caddy.json"]
|
CMD ["/app/caddy", "run", "--config", "/app/data/Caddyfile"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user