Initial commit

This commit is contained in:
2022-12-08 21:44:08 +01:00
commit cf074be1a8
11 changed files with 416 additions and 0 deletions

14
Cloudflared/Dockerfile Executable file
View File

@ -0,0 +1,14 @@
FROM alpine:latest AS alpine
ARG DOMAIN
ARG TUNNEL_UUID
RUN mkdir -p /etc/cloudflared
COPY config/ /etc/cloudflared
RUN sed -i "s/<domain.tld>/${DOMAIN}/g" /etc/cloudflared/config.yml
RUN sed -i "s/<tunnel-uuid>/${TUNNEL_UUID}/g" /etc/cloudflared/config.yml
FROM cloudflare/cloudflared:latest
COPY --from=alpine /etc/cloudflared /etc/cloudflared

13
Cloudflared/config/config.yml Executable file
View File

@ -0,0 +1,13 @@
tunnel: <tunnel-uuid>
credentials-file: /etc/cloudflared/<tunnel-uuid>.json
ingress:
- hostname: '<domain.tld>'
service: https://caddy:443
originRequest:
originServerName: '<domain.tld>'
- hostname: '*.<domain.tld>'
service: https://caddy:443
originRequest:
originServerName: '*.<domain.tld>'
- service: http_status:404