Skip to content

Instantly share code, notes, and snippets.

@icarrr
Created September 20, 2022 22:40
Show Gist options
  • Save icarrr/48e3d0aa4076716ab866335ef596be36 to your computer and use it in GitHub Desktop.
Save icarrr/48e3d0aa4076716ab866335ef596be36 to your computer and use it in GitHub Desktop.
Cloudflared - argo tunnel

Login to cloudflare

.\cloudflared tunnel login

Create tunnel

.\cloudflared tunnel create tunnel_name

Argo tunnel config

tunnel: tunnel_id
credentials-file: C:\Users\Faizar Septiawan\.cloudflared\tunnel_id.json

ingress:
  ####### CNAME : tunnel_id.cfargotunnel.com
  #### Rules for checking XMachine
  - hostname: localdev-win.sibunglon.com
    service: http://localhost:2019
  #### Example of a rule responding to traffic with an HTTP status:
  - service: http_status:404

Run argo tunnel

.\cloudflared --config config.yml --no-autoupdate tunnel run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment