summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/cloudflare-tunnel.yml
blob: e6932011e603bc2750af579583b989da6f027ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
captainVersion: 4
services:
    $$cap_appname:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM cloudflare/cloudflared:$$cap_cloudflared_version
                - ENTRYPOINT ["cloudflared"]
                - CMD ["tunnel", "--no-autoupdate", "run", "--token", "$$cap_cloudflared_token"]
        restart: always
caproverOneClickApp:
    variables:
        - id: $$cap_cloudflared_token
          label: Cloudflare Tunnel Token
          defaultValue: ''
          description: 'Your Cloudflare tunnel token. This is required to authenticate the tunnel with Cloudflare.'
        - id: $$cap_cloudflared_version
          label: Cloudflare Cloudflared Version
          defaultValue: '1517-bb29a0e19437'
          description: 'The version of Cloudflare Cloudflared to use.'
    instructions:
        start: >-
            This CapRover app deploys a Cloudflare tunnel, allowing you to securely expose your services to the internet. Make sure to provide the Cloudflare Tunnel Token when you deploy this app.
        end: >-
            The Cloudflare tunnel is now running. Configure your Cloudflare DNS to point to this tunnel for secure, encrypted traffic. This setup ensures your applications are accessible through Cloudflare's network.
    displayName: 'Cloudflare Tunnel'
    isOfficial: true
    description: 'Secure your web servers with a Cloudflare Tunnel. This creates an encrypted connection without exposing your server directly.'
    documentation: 'For more information on Cloudflared and how to use it, visit: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps'