Skip to content

Commit 47c2063

Browse files
nikitacanojonesphillip
authored andcommitted
Rules: Port relevant changelog entries to the new version (#19915)
1 parent 380b18f commit 47c2063

File tree

9 files changed

+140
-0
lines changed

9 files changed

+140
-0
lines changed
4.89 MB
Loading
929 KB
Loading
534 KB
Loading
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: New Rules Templates for One-Click Rule Creation
3+
description: Quickly set up common rules with pre-built templates.
4+
products:
5+
- rules
6+
date: 2024-09-05T11:00:00Z
7+
---
8+
9+
Now, you can create **common rule configurations** in just **one click** using Rules Templates.
10+
11+
![Rules Templates](~/assets/images/changelog-next/rules/rules-templates.gif)
12+
13+
What you can do:
14+
- **Pick a pre-built rule** – Choose from a library of templates.
15+
- **One-click setup** – Deploy best practices instantly.
16+
- **Customize as needed** – Adjust templates to fit your setup.
17+
18+
Template cards are now also available directly in the rule builder for each product.
19+
20+
Need more ideas? Check out the [Examples gallery](/rules/examples/) in our documentation.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: Simplified UI for URL Rewrites
3+
description: Set up wildcard-based URL rewrites faster with a new streamlined UI.
4+
products:
5+
- rules
6+
date: 2024-10-23T11:00:00Z
7+
---
8+
9+
It’s now easy to create **wildcard-based [URL Rewrites](/rules/transform/url-rewrite/)**. No need for complex functions—just define your patterns and go.
10+
11+
![Rules Overview Interface](~/assets/images/rules/transform/create-url-rewrite-rule.png)
12+
13+
What’s improved:
14+
- **Full wildcard support** – Create rewrite patterns using intuitive interface.
15+
- **Simplified rule creation** – No need for complex functions.
16+
17+
Try it via [creating a Rewrite URL rule in the dashboard](/rules/transform/url-rewrite/create-dashboard/#wildcard-pattern-parameters).
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: Cloud Connector Now Supports R2
3+
description: Cloud Connector now integrates with Cloudflare R2 for object storage.
4+
products:
5+
- rules
6+
date: 2024-11-22T11:00:00Z
7+
---
8+
9+
Now, you can use [Cloud Connector](/rules/cloud-connector/) to route traffic to your [R2 buckets](/r2/) based on URLs, headers, geolocation, and more.
10+
11+
Example setup:
12+
13+
```bash
14+
curl --request PUT \
15+
"https://api.cloudflare.com/client/v4/zones/{zone_id}/cloud_connector/rules" \
16+
--header "Authorization: Bearer <API_TOKEN>" \
17+
--header "Content-Type: application/json" \
18+
--data '[
19+
{
20+
"expression": "http.request.uri.path wildcard \"/images/*\"",
21+
"provider": "cloudflare_r2",
22+
"description": "Connect to R2 bucket containing images",
23+
"parameters": {
24+
"host": "mybucketcustomdomain.example.com"
25+
}
26+
}
27+
]'
28+
```
29+
30+
Get started using [Cloud Connector](/rules/cloud-connector/) documentation.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Terraform Support for Snippets
3+
description: Automate Snippet deployments with Terraform.
4+
products:
5+
- rules
6+
date: 2024-12-11T11:00:00Z
7+
---
8+
9+
Now, you can manage [Cloudflare Snippets](/rules/snippets/) with [Terraform](/terraform/). Use infrastructure-as-code to deploy and update Snippet code and rules without manual changes in the dashboard.
10+
11+
Example Terraform configuration:
12+
13+
```tf
14+
resource "cloudflare_snippet" "my_snippet" {
15+
zone_id = "<ZONE_ID>"
16+
name = "my_test_snippet_1"
17+
main_module = "file1.js"
18+
files {
19+
name = "file1.js"
20+
content = file("file1.js")
21+
}
22+
}
23+
24+
resource "cloudflare_snippet_rules" "cookie_snippet_rule" {
25+
zone_id = "<ZONE_ID>"
26+
rules {
27+
enabled = true
28+
expression = "http.cookie eq \"a=b\""
29+
description = "Trigger snippet on specific cookie"
30+
snippet_name = "my_test_snippet_1"
31+
}
32+
depends_on = [cloudflare_snippet.my_snippet]
33+
}
34+
```
35+
36+
Learn more in the [Configure Snippets using Terraform](/rules/snippets/create-terraform/) documentation.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: New Rules Overview Interface
3+
description: Manage all your rules in one place with the new Rules Overview.
4+
products:
5+
- rules
6+
date: 2025-01-09T11:00:00Z
7+
---
8+
9+
**Rules Overview** gives you a single page to manage all your [Cloudflare Rules](/rules/).
10+
11+
![Rules Overview Interface](~/assets/images/changelog-next/rules/rules-overview.gif)
12+
13+
What you can do:
14+
- **See all your rules in one place** – No more clicking around.
15+
- **Find rules faster** – Search by name.
16+
- **Understand execution order** – See how rules run in sequence.
17+
- **Debug easily** – Use [Trace](/fundamentals/security/trace-request/) without switching tabs.
18+
19+
Check it out in [Rules > Overview](https://dash.cloudflare.com/?to=/:account/:zone/rules/overview).
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: New Snippets Code Editor
3+
description: Edit Snippets and rules in one place with the new built-in code editor.
4+
products:
5+
- rules
6+
date: 2025-01-29T11:00:00Z
7+
---
8+
9+
The new [Snippets](/rules/snippets/) code editor lets you edit Snippet code and rule in one place, making it easier to test and deploy changes without switching between pages.
10+
11+
![New Snippets code editor](~/assets/images/changelog-next/rules/snippets-new-editor.png)
12+
13+
What’s new:
14+
- **Single-page editing for code and rule** – No need to jump between screens.
15+
- **Auto-complete & syntax highlighting** – Get suggestions and avoid mistakes.
16+
- **Code formatting & refactoring** – Write cleaner, more readable code.
17+
18+
Try it now in [Rules > Snippets](https://dash.cloudflare.com/?to=/:account/:zone/rules/snippets).

0 commit comments

Comments
 (0)