You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,15 @@ The binary can be downloaded from the [GitHub Releases](https://github.com/sblde
20
20
Alternatively, you can build from source:
21
21
22
22
```bash
23
-
go build -o cfproxy.
23
+
go build -o cloudflared-proxy.
24
24
```
25
25
26
26
## Usage
27
27
28
28
The primary command is `run`, which starts the reverse proxies.
29
29
30
30
```bash
31
-
./cfproxy run [flags]
31
+
./cloudflared-proxy run [flags]
32
32
```
33
33
34
34
### Command-Line Flags
@@ -45,29 +45,29 @@ You can specify endpoints directly on the command line.
45
45
46
46
```bash
47
47
# Proxy example.com to localhost:8888
48
-
./cfproxy run -e example.com
48
+
./cloudflared-proxy run -e example.com
49
49
50
50
# Proxy example.com to localhost:9000
51
-
./cfproxy run -e 9000:example.com
51
+
./cloudflared-proxy run -e 9000:example.com
52
52
53
53
# Proxy example.com:8443 to localhost:8888
54
-
./cfproxy run -e example.com:8443
54
+
./cloudflared-proxy run -e example.com:8443
55
55
56
56
# Proxy example.com:8443 to localhost:9000
57
-
./cfproxy run -e 9000:example.com:8443
57
+
./cloudflared-proxy run -e 9000:example.com:8443
58
58
59
59
# Proxy multiple endpoints
60
-
./cfproxy run -e example1.com,9001:example2.com
60
+
./cloudflared-proxy run -e example1.com,9001:example2.com
61
61
# or
62
-
./cfproxy run -e example1.com -e 9001:example2.com
62
+
./cloudflared-proxy run -e example1.com -e 9001:example2.com
63
63
64
64
# Skip TLS verification
65
-
./cfproxy run -e example.com --skip-tls
65
+
./cloudflared-proxy run -e example.com --skip-tls
66
66
```
67
67
68
68
### Configuration File
69
69
70
-
For a more persistent setup, you can use a configuration file. By default, `cfproxy` looks for a `config` file in `$HOME/.config/cloudflared-proxy/`. You can specify a different file with the `--config` or `-c` flag.
70
+
For a more persistent setup, you can use a configuration file. By default, `cloudflared-proxy` looks for a `config` file in `$HOME/.config/cloudflared-proxy/`. You can specify a different file with the `--config` or `-c` flag.
71
71
72
72
**Example `config.yaml`:**
73
73
@@ -85,12 +85,12 @@ proxies:
85
85
With a configuration file, you can start the proxies with a simple command:
86
86
87
87
```bash
88
-
./cfproxy run
88
+
./cloudflared-proxy run
89
89
```
90
90
91
91
Or with a custom config file path:
92
92
```bash
93
-
./cfproxy run -c /path/to/your/config.yaml
93
+
./cloudflared-proxy run -c /path/to/your/config.yaml
0 commit comments