Skip to content

Commit

Permalink
feat: add parameter token
Browse files Browse the repository at this point in the history
  • Loading branch information
papanito committed Jul 20, 2023
1 parent 7a60cdd commit d43648a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ These are used to configure the parameters per cloudflared service. You still ca
|`region`|Allows you to choose the regions to which connections are established. Omit or leave empty to connect to the global region. Set `--region=us` to route all connections through us region 1 and us region 2|-|
|`retries`|Maximum number of retries for connection/protocol errors. Retries use exponential backoff (retrying at 1, 2, 4, 8, 16 seconds by default) so increasing this value significantly is not recommended - see [docu](https://developers.cloudflare.com/argo-tunnel/reference/arguments/#retries)|`5`|
|`tag`|Custom tags used to identify this tunnel, in format `KEY=VALUE` - see [docu](https://developers.cloudflare.com/argo-tunnel/reference/arguments/#tag)|-|
|`token`|Associates the cloudflared instance with a specific tunnel. The tunnel’s token is shown in the dashboard when you first [create the tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/install-and-setup/tunnel-guide/remote/). You can also retrieve the token using the [API](https://developers.cloudflare.com/api/operations/cloudflare-tunnel-get-a-cloudflare-tunnel-token)|-|
|`transport_loglevel`|Specifies the verbosity of logs for the transport between cloudflared and the Cloudflare edge. Available levels are: `trace`, `debug`, `info`, `warn`, `error`, `fatal`, `panic`. Any value below warn produces substantial output and should only be used to debug low-level performance issues and protocol quirks - see [docu](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local/local-management/arguments/#transport-loglevel)|`info`|
|`warp_routing`|Allow users to connect to internal services using WARP, details see [warp-routing]|`false`|

Expand Down
3 changes: 3 additions & 0 deletions templates/config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ grace-period: {{ cf_tunnel.value.grace_period }}
{% if cf_tunnel.value.region is defined %}
region: {{ cf_tunnel.value.region }}
{% endif %}
{% if cf_tunnel.value.token is defined %}
token: {{ cf_tunnel.value.token }}
{% endif %}
{% if (cf_tunnel.value.warp_routing | default(false)) %}
warp-routing:
enabled: true
Expand Down

0 comments on commit d43648a

Please sign in to comment.