Skip to content

Commit 614541f

Browse files
Add app platform edge controls (#1037)
* Add edge controls * Update disable_edge_cache documentation * clarify description Co-authored-by: Elan Hasson <234704+ElanHasson@users.noreply.github.com> --------- Co-authored-by: Elan Hasson <234704+ElanHasson@users.noreply.github.com>
1 parent 749bed9 commit 614541f

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

specification/resources/apps/apps_create.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ requestBody:
2222
spec:
2323
name: web-app
2424
region: nyc
25+
disable_edge_cache: true
26+
disable_email_obfuscation: false
27+
enhanced_threat_control_enabled: true
2528
services:
2629
- name: api
2730
github:

specification/resources/apps/models/app_spec.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,28 @@ properties:
2727
- syd
2828
example: nyc
2929

30+
disable_edge_cache:
31+
description: |-
32+
If set to `true`, the app will **not** be cached at the edge (CDN). Enable this option if you want to manage CDN configuration yourself—whether by using an external CDN provider or by handling static content and caching within your app. This setting is also recommended for apps that require real-time data or serve dynamic content, such as those using Server-Sent Events (SSE) over GET, or hosting an MCP (Model Context Protocol) Server that utilizes SSE.
33+
**Note:** This feature is not available for static site components.
34+
For more information, see [Disable CDN Cache](https://docs.digitalocean.com/products/app-platform/how-to/cache-content/#disable-cdn-cache).
35+
36+
type: boolean
37+
default: false
38+
39+
disable_email_obfuscation:
40+
description: |-
41+
If set to `true`, email addresses in the app will not be obfuscated. This is
42+
useful for apps that require email addresses to be visible (in the HTML markup).
43+
type: boolean
44+
default: false
45+
46+
enhanced_threat_control_enabled:
47+
description: |-
48+
If set to `true`, suspicious requests will go through additional security checks to help mitigate layer 7 DDoS attacks.
49+
type: boolean
50+
default: false
51+
3052
domains:
3153
description: A set of hostnames where the application will be available.
3254
type: array

specification/resources/apps/models/apps_deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ properties:
5151
readOnly: true
5252
title: The current pricing tier slug of the deployment
5353
type: string
54-
example: basic
54+
example: basic
5555
updated_at:
5656
format: date-time
5757
title: When the deployment was last updated

specification/resources/apps/responses/examples.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ app:
212212
owner_uuid: a4e16f25-cdd1-4483-b246-d77f283c9209
213213
spec:
214214
name: sample-golang
215+
disable_edge_cache: true
216+
enhanced_threat_control_enabled: true
215217
services:
216218
- name: web
217219
github:
@@ -436,6 +438,9 @@ deployments:
436438
- id: b6bdf840-2854-4f87-a36c-5f231c617c84
437439
spec:
438440
name: sample-golang
441+
disable_edge_cache: true
442+
disable_email_obfuscation: true
443+
enhanced_threat_control_enabled: true
439444
services:
440445
- name: web
441446
github:
@@ -507,6 +512,9 @@ deployment:
507512
id: b6bdf840-2854-4f87-a36c-5f231c617c84
508513
spec:
509514
name: sample-golang
515+
disable_edge_cache: true
516+
disable_email_obfuscation: true
517+
enhanced_threat_control_enabled: true
510518
services:
511519
- name: web
512520
github:

0 commit comments

Comments
 (0)