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
-`url` (string | URL | Request) - The URL to fetch. This must be an absolute URL including protocol, host, and path (for example, `http://internal-api:8080/api/users`)
34
+
-`resource` (string | URL | Request) - The URL to fetch. This must be an absolute URL including protocol, host, and path (for example, `http://internal-api:8080/api/users`)
35
35
-`options` (optional RequestInit) - Standard fetch options including:
36
36
-`method` - HTTP method (GET, POST, PUT, DELETE, etc.)
37
37
-`headers` - Request headers
@@ -44,7 +44,7 @@ VPC Service fetch requests must use absolute URLs including the protocol (http/h
44
44
45
45
### Return value
46
46
47
-
Returns a `Promise<Response>` that resolves to a standard Fetch API Response object.
47
+
Returns a `Promise<Response>` that resolves to a [standard Fetch API Response object](https://developer.mozilla.org/en-US/docs/Web/API/Response).
Copy file name to clipboardExpand all lines: src/content/docs/workers-vpc/configuration/tunnel/hardware-requirements.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ For production use cases, we recommend the following baseline configuration:
14
14
- Run a cloudflared replica on two dedicated host machines per network location. Using two hosts enables server-side redundancy. See [tunnel availability and replicas](/cloudflare-one/connections/connect-networks/configure-tunnels/tunnel-availability/) for setup instructions.
15
15
- Size each host with minimum 4GB of RAM and 4 CPU cores.
16
16
17
-
This setup is usually sufficient to handle traffic from small-medium sized applications. The actual amount of resources used by cloudflared will depend on many variables, including the number of requests per second, bandwidth, network path, and hardware. As additional users are onboarded, or if network traffic increases beyond your existing tunnel capacity, you can scale your tunnel by adding an additional cloudflared host in that location.
17
+
This setup is usually sufficient to handle traffic from small-medium sized applications. The actual amount of resources used by cloudflared will depend on many variables, including the number of requests per second, bandwidth, network path, and hardware. If usage increases beyond your existing tunnel capacity, you can scale your tunnel by increasing the hardware allocated to the cloudflared hosts.
Copy file name to clipboardExpand all lines: src/content/docs/workers-vpc/configuration/tunnel/index.mdx
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,7 @@ Cloudflare Tunnels can be created one of two ways:
28
28
29
29
For Workers VPC, we recommend creating a remotely-managed tunnel through the dashboard. Follow the [Tunnels for Workers VPC dashboard setup guide](/workers-vpc/get-started/) to create your tunnel with provided installation commands shown in the dashboard.
30
30
31
-
For locally-managed tunnels, refer to the [`cloudflared` locally-managed tunnels](/cloudflare-one/connections/connect-networks/do-more-with-tunnels/local-management/) guide.
32
-
33
-
For manual installation, refer to the [`cloudflared` downloads page](/cloudflare-one/connections/connect-networks/downloads/) for platform-specific installation instructions.
31
+
For locally-managed tunnels, refer to the [`cloudflared` locally-managed tunnels](/cloudflare-one/connections/connect-networks/do-more-with-tunnels/local-management/) guide. For manual installation, refer to the [`cloudflared` downloads page](/cloudflare-one/connections/connect-networks/downloads/) for platform-specific installation instructions.
34
32
35
33
:::note[Important Note]
36
34
Cloudflare Tunnels can either be configured for usage with [Cloudflare Zero Trust](/cloudflare-one/) or [Workers VPC](/workers-vpc/).
Copy file name to clipboardExpand all lines: src/content/docs/workers-vpc/configuration/vpc-services.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ A VPC Service consists of:
37
37
38
38
## Configuration example
39
39
40
-
The following is an example of a VPC Service for a service using custom HTTP and HTTPS ports, and both IPv4 and IPv6 addresses.
40
+
The following is an example of a VPC Service for a service using custom HTTP and HTTPS ports, and both IPv4 and IPv6 addresses. These configurations represent the expected contract of the [REST API for creating a VPC Service](https://developers.cloudflare.com/api/resources/zero_trust/subresources/connectivity/subresources/directory/subresources/services/), a type of service within the broader connectivity directory.
Copy file name to clipboardExpand all lines: src/content/docs/workers-vpc/get-started.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ cd workers-vpc-app
62
62
63
63
## 2. Set up Cloudflare Tunnel
64
64
65
-
A Cloudflare Tunnel creates a secure connection from your private network to Cloudflare. This tunnel will allow Workers to securely access your private resources.
65
+
A Cloudflare Tunnel creates a secure connection from your private network to Cloudflare. This tunnel will allow Workers to securely access your private resources. You can create the tunnel on a virtual machine or container in your external cloud, or even on your local desktop for the sake of this tutorial.
Copy file name to clipboardExpand all lines: src/content/docs/workers-vpc/index.mdx
+11-12Lines changed: 11 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Securely connect your private cloud to Cloudflare to build cross-cloud apps.
28
28
29
29
Workers VPC allows you to connect your Workers to your private APIs and services in external clouds (AWS, Azure, GCP, on-premise, etc.) that are not accessible from the public Internet.
30
30
31
-
With Workers VPC, you can configure a [Cloudflare Tunnel](/cloudflare-one/connections/connect-networks/) to establish secure, private connections from your private networks to Cloudflare. Then, you can configure a [VPC Service](/workers-vpc/configuration/vpc-services/) for each service in the external private network you need to connect to, and using[VPC Service bindings](/workers-vpc/api/) to connect from Workers.
31
+
With Workers VPC, you can configure a [Cloudflare Tunnel](/cloudflare-one/connections/connect-networks/) to establish secure, private connections from your private networks to Cloudflare. Then, you can configure a [VPC Service](/workers-vpc/configuration/vpc-services/) for each service in the external private network you need to connect to, and use[VPC Service bindings](/workers-vpc/api/) to connect from Workers.
32
32
33
33
:::note
34
34
@@ -46,17 +46,16 @@ export default {
46
46
"http://internal-api.company.local/data",
47
47
);
48
48
49
-
// Process the response from your private network
50
-
const data =awaitresponse.json();
51
-
52
-
returnnewResponse(JSON.stringify(data), {
53
-
headers: { "content-type": "application/json" },
54
-
});
55
-
},
49
+
// Process the response from your private network
50
+
const data =awaitresponse.json();
56
51
52
+
returnnewResponse(JSON.stringify(data), {
53
+
headers: { "content-type": "application/json" },
54
+
});
55
+
},
57
56
};
58
57
59
-
```
58
+
````
60
59
61
60
</TabItem>
62
61
<TabItemlabel="wrangler.jsonc">
@@ -74,20 +73,20 @@ export default {
74
73
}
75
74
]
76
75
}
77
-
```
76
+
````
78
77
79
78
</TabItem>
80
79
</Tabs>
81
80
82
81
## Use cases
83
82
84
-
### Applications on Workers with access to private APIs
83
+
### Access private APIs from Workers applications
85
84
86
85
Deploy APIs or full-stack applications to Workers that connect to private authentication services, CMS systems, internals APIs, and more. Your Workers applications run globally with optimized access to the backend services of your private network.
87
86
88
87
### API gateway
89
88
90
-
Route requests to internal microservices in your private network based on URL paths. Centralize access control and load balancing for multiple private services.
89
+
Route requests to internal microservices in your private network based on URL paths. Centralize access control and load balancing for multiple private services on Workers.
0 commit comments