mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 12:45:59 +02:00
cloudflared, wrangler: add page (#4534)
This commit is contained in:
parent
8c8314f725
commit
f346bc66e7
2 changed files with 48 additions and 0 deletions
24
pages/common/cloudflared.md
Normal file
24
pages/common/cloudflared.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# cloudflared
|
||||
|
||||
> Command line tool to create a persistent connection to the Cloudflare network.
|
||||
> More information: <https://developers.cloudflare.com/argo-tunnel/>.
|
||||
|
||||
- Authenticate and associate the connection to a domain in the Cloudflare account:
|
||||
|
||||
`cloudflared tunnel login`
|
||||
|
||||
- Establish a tunnel to a host in Cloudflare from the local server:
|
||||
|
||||
`cloudflared tunnel --hostname {{hostname}} localhost:{{port_number}}`
|
||||
|
||||
- Establish a tunnel to a host in Cloudflare from the local server, without verifying the local server's certificate:
|
||||
|
||||
`cloudflared tunnel --hostname {{hostname}} localhost:{{port_number}} --no-tls-verify`
|
||||
|
||||
- Save logs to a file:
|
||||
|
||||
`cloudflared tunnel --hostname {{hostname}} http://localhost:{{port_number}} --loglevel {{panic|fatal|error|warn|info|debug}} --logfile {{path/to/file}}`
|
||||
|
||||
- Install cloudflared as a system service:
|
||||
|
||||
`cloudflared service install`
|
24
pages/common/wrangler.md
Normal file
24
pages/common/wrangler.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# wrangler
|
||||
|
||||
> Cloudflare Workers command line tool.
|
||||
> More information: <https://developers.cloudflare.com/workers/>.
|
||||
|
||||
- Initialize a project with a skeleton configuration:
|
||||
|
||||
`wrangler init {{project_name}}`
|
||||
|
||||
- Authenticate with Cloudflare:
|
||||
|
||||
`wrangler login`
|
||||
|
||||
- Start a local development server:
|
||||
|
||||
`wrangler dev --host {{hostname}}`
|
||||
|
||||
- Publish the worker script:
|
||||
|
||||
`wrangler publish`
|
||||
|
||||
- Aggregate logs from the production worker:
|
||||
|
||||
`wrangler tail`
|
Loading…
Add table
Reference in a new issue