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: apps/docs/content/features/cdn.mdx
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -192,11 +192,17 @@ Zerops provides multiple ways to manage and purge cached content before its norm
192
192
```sh
193
193
# Purge all content for a domain
194
194
zsc cdn purge example.com
195
-
196
-
# Purge specific path
197
-
zsc cdn purge example.com /images/
195
+
# Purge all content (wildcard)
196
+
zsc cdn purge example.com "/*"
197
+
# Purge specific file
198
+
zsc cdn purge example.com "/path/to/my-file$"
198
199
```
199
200
201
+
:::important
202
+
- This command must be executed in any container within the project that has the CDN-enabled domain active
203
+
- Currently only works for [Static Mode](#static-mode) CDN
204
+
:::
205
+
200
206
-**API Endpoints**: For programmatic control, use the [API endpoints](#api-reference). Here are ready-to-use curl examples for quickly purging content in your scripts:
desc: Production-ready NATS messaging system on Zerops platform with automated scaling and enterprise reliability. Deploy, manage, and scale with zero infrastructure hassle.
Zerops provides a fully managed [NATS](https://nats.io/) messaging system with automated scaling and zero infrastructure overhead, letting developers focus entirely on development.
11
+
12
+
## Supported Versions
13
+
14
+
Currently supported NATS version:
15
+
<UnorderedListdata={data.nats.readable}/>
16
+
17
+
Importconfigurationversion:
18
+
<UnorderedCodeListdata={data.nats.import}/>
19
+
20
+
## Service Configuration
21
+
22
+
Our NATS implementation features optimized default settings designed for common use cases.
23
+
24
+
**Key configuration aspects** include:
25
+
- Standard protocol port `4222` for client connections
26
+
- HTTP monitoring interface `8222` for management
27
+
- Secure authentication with automatically generated credentials
28
+
- Optimized settings for performance and reliability
29
+
30
+
### JetStream Configuration
31
+
32
+
The service includes [JetStream](https://docs.nats.io/nats-concepts/jetstream) functionality **enabled by default**, providing persistent storage capabilities for your messaging workloads:
33
+
-**Memory store**: Up to 40GB for high-performance message caching
34
+
-**File store**: Up to 250GB for persistent storage
35
+
-**Regular sync intervals**: Ensures data durability and consistency
36
+
:::note
37
+
In HA deployments, data persistence is further enhanced with 1-minute sync intervals across all nodes, ensuring robust data durability and high availability.
38
+
:::
39
+
40
+
This configuration provides a robust foundation for message persistence while balancing performance and reliability.
41
+
42
+
#### Disabling JetStream
43
+
44
+
If you don't need message persistence, you can disable JetStream by setting the `JET_STREAM_ENABLED` environment variable to `0` in your service configuration. This can be done:
45
+
46
+
- During service creation through the [import configuration](/references/import)
47
+
- In the Zerops GUI under service environment variables
48
+
- Via the [Zerops API](/references/api) when creating a new service
49
+
50
+
:::tip
51
+
Disabling JetStream may reduce resource usage when persistence isn't required for your application.
52
+
:::
53
+
54
+
### Deployment Modes
55
+
56
+
:::warning
57
+
Deployment mode is selected during service creation and cannot be changed later.
58
+
:::
59
+
60
+
#### Non-HA Mode
61
+
- Suitable for development and testing
62
+
- Data persistence not guaranteed during node failures
63
+
- Lower resource requirements
64
+
65
+
#### HA Mode
66
+
- Creates a multi-node NATS cluster
67
+
- Configures routes between cluster nodes automatically
68
+
- Implements [NATS clustering](https://docs.nats.io/running-a-nats-service/configuration/clustering) for high availability
69
+
- Provides improved reliability compared to non-HA deployments
70
+
71
+
### Authentication Management
72
+
73
+
Authentication credentials are automatically generated and managed by the platform. The system creates a default user (`zerops`) with a secure 16-character password. You can access these credentials through:
74
+
- The service access details in the Zerops GUI
75
+
- Environment variables in your service configuration:
76
+
-`user` - Username for authentication (default: "zerops")
77
+
-`password` - Generated secure password
78
+
-`connectionString` - Complete connection string in the format `nats://${dbUser}:${dbPassword}@${hostname}:${port}`
79
+
80
+
## Health Monitoring
81
+
82
+
Zerops continuously monitors your NATS service health using built-in health checks:
83
+
84
+
-**HTTP Health Check**: The system checks the `/healthz` endpoint at port 8222
85
+
-**Self-Healing**: The platform automatically recovers unhealthy nodes when issues are detected
86
+
87
+
### Health Status
88
+
89
+
You can check the health status of your NATS service:
90
+
91
+
1. Through the Zerops GUI dashboard
92
+
2. By accessing the management interface at port `8222`
93
+
94
+
## Backup and Recovery
95
+
96
+
Zerops provides built-in backup functionality for your NATS JetStream data, ensuring your message streams and configurations can be safely preserved and restored when needed.
97
+
98
+
### Backup Process
99
+
100
+
Backups are created in `.tar.gz` format using the `nats` backup command. They are saved to local disk, compressed, streamed to backup storage, and then deleted locally.
101
+
102
+
For general information about backup frequency and storage limits, see our [Backup documentation](/features/backup).
103
+
104
+
## Support
105
+
106
+
For advanced configurations or custom requirements:
Copy file name to clipboardExpand all lines: apps/docs/static/llms-full.txt
+123-8Lines changed: 123 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12533,11 +12533,17 @@ Zerops provides multiple ways to manage and purge cached content before its norm
12533
12533
```sh
12534
12534
# Purge all content for a domain
12535
12535
zsc cdn purge example.com
12536
-
12537
-
# Purge specific path
12538
-
zsc cdn purge example.com /images/
12536
+
# Purge all content (wildcard)
12537
+
zsc cdn purge example.com "/*"
12538
+
# Purge specific file
12539
+
zsc cdn purge example.com "/path/to/my-file$"
12539
12540
```
12540
12541
12542
+
:::important
12543
+
- This command must be executed in any container within the project that has the CDN-enabled domain active
12544
+
- Currently only works for [Static Mode](#static-mode) CDN
12545
+
:::
12546
+
12541
12547
- **API Endpoints**: For programmatic control, use the [API endpoints](#api-reference). Here are ready-to-use curl examples for quickly purging content in your scripts:
@@ -28155,6 +28161,108 @@ For advanced configurations or custom requirements:
28155
28161
28156
28162
28157
28163
28164
+
Zerops provides a fully managed [NATS](https://nats.io/) messaging system with automated scaling and zero infrastructure overhead, letting developers focus entirely on development.
28165
+
28166
+
## Supported Versions
28167
+
28168
+
Currently supported NATS version:
28169
+
<UnorderedList data={data.nats.readable}/>
28170
+
28171
+
Import configuration version:
28172
+
<UnorderedCodeList data={data.nats.import}/>
28173
+
28174
+
## Service Configuration
28175
+
28176
+
Our NATS implementation features optimized default settings designed for common use cases.
28177
+
28178
+
**Key configuration aspects** include:
28179
+
- Standard protocol port `4222` for client connections
28180
+
- HTTP monitoring interface `8222` for management
28181
+
- Secure authentication with automatically generated credentials
28182
+
- Optimized settings for performance and reliability
28183
+
28184
+
### JetStream Configuration
28185
+
28186
+
The service includes [JetStream](https://docs.nats.io/nats-concepts/jetstream) functionality **enabled by default**, providing persistent storage capabilities for your messaging workloads:
28187
+
- **Memory store**: Up to 40GB for high-performance message caching
28188
+
- **File store**: Up to 250GB for persistent storage
28189
+
- **Regular sync intervals**: Ensures data durability and consistency
28190
+
:::note
28191
+
In HA deployments, data persistence is further enhanced with 1-minute sync intervals across all nodes, ensuring robust data durability and high availability.
28192
+
:::
28193
+
28194
+
This configuration provides a robust foundation for message persistence while balancing performance and reliability.
28195
+
28196
+
#### Disabling JetStream
28197
+
28198
+
If you don't need message persistence, you can disable JetStream by setting the `JET_STREAM_ENABLED` environment variable to `0` in your service configuration. This can be done:
28199
+
28200
+
- During service creation through the [import configuration](/references/import)
28201
+
- In the Zerops GUI under service environment variables
28202
+
- Via the [Zerops API](/references/api) when creating a new service
28203
+
28204
+
:::tip
28205
+
Disabling JetStream may reduce resource usage when persistence isn't required for your application.
28206
+
:::
28207
+
28208
+
### Deployment Modes
28209
+
28210
+
:::warning
28211
+
Deployment mode is selected during service creation and cannot be changed later.
28212
+
:::
28213
+
28214
+
#### Non-HA Mode
28215
+
- Suitable for development and testing
28216
+
- Data persistence not guaranteed during node failures
28217
+
- Lower resource requirements
28218
+
28219
+
#### HA Mode
28220
+
- Creates a multi-node NATS cluster
28221
+
- Configures routes between cluster nodes automatically
28222
+
- Implements [NATS clustering](https://docs.nats.io/running-a-nats-service/configuration/clustering) for high availability
28223
+
- Provides improved reliability compared to non-HA deployments
28224
+
28225
+
### Authentication Management
28226
+
28227
+
Authentication credentials are automatically generated and managed by the platform. The system creates a default user (`zerops`) with a secure 16-character password. You can access these credentials through:
28228
+
- The service access details in the Zerops GUI
28229
+
- Environment variables in your service configuration:
28230
+
- `user` - Username for authentication (default: "zerops")
28231
+
- `password` - Generated secure password
28232
+
- `connectionString` - Complete connection string in the format `nats://${dbUser}:${dbPassword}@${hostname}:${port}`
28233
+
28234
+
## Health Monitoring
28235
+
28236
+
Zerops continuously monitors your NATS service health using built-in health checks:
28237
+
28238
+
- **HTTP Health Check**: The system checks the `/healthz` endpoint at port 8222
28239
+
- **Self-Healing**: The platform automatically recovers unhealthy nodes when issues are detected
28240
+
28241
+
### Health Status
28242
+
28243
+
You can check the health status of your NATS service:
28244
+
28245
+
1. Through the Zerops GUI dashboard
28246
+
2. By accessing the management interface at port `8222`
28247
+
28248
+
## Backup and Recovery
28249
+
28250
+
Zerops provides built-in backup functionality for your NATS JetStream data, ensuring your message streams and configurations can be safely preserved and restored when needed.
28251
+
28252
+
### Backup Process
28253
+
28254
+
Backups are created in `.tar.gz` format using the `nats` backup command. They are saved to local disk, compressed, streamed to backup storage, and then deleted locally.
28255
+
28256
+
For general information about backup frequency and storage limits, see our [Backup documentation](/features/backup).
28257
+
28258
+
## Support
28259
+
28260
+
For advanced configurations or custom requirements:
- Contact support via [email](mailto:support@zerops.io)
28263
+
28264
+
28265
+
28158
28266
<FAQ>
28159
28267
<FAQItem question="How do I enable SEO optimization with prerender.io?">
28160
28268
Zerops provides built-in prerender.io support. Simply set the `PRERENDER_TOKEN` environment variable with your prerender.io service token. See our [prerender.io documentation](/nginx/how-to/env-variables#prerenderio-support) for details.
@@ -46019,13 +46127,20 @@ zsc cdn [command]
46019
46127
46020
46128
#### Examples
46021
46129
```sh
46022
-
# Purge CDN cache for a specific domain
46130
+
# Purge all CDN cache for a specific domain
46023
46131
zsc cdn purge example.com
46024
-
46025
-
# Purge CDN cache for a specific path on a domain
46026
-
zsc cdn purge example.com /images/
46132
+
# Purge all content using wildcard pattern
46133
+
zsc cdn purge example.com "/*"
46134
+
# Purge CDN cache for a specific file (note the $ suffix)
46135
+
zsc cdn purge example.com "/path/to/my-file$"
46136
+
# Purge CDN cache for a specific directory
46137
+
zsc cdn purge example.com "/images/"
46027
46138
```
46028
46139
46140
+
:::important
46141
+
- This command must be executed in any container within the project that has the CDN-enabled domain active
46142
+
- Currently, the purge command only works for the [Static Mode](/features/cdn#static-mode) CDN
0 commit comments