Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ coverage/
.DS_Store
artifacts/
.serverlessinsight/
.omo/
59 changes: 58 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![codecov](https://codecov.io/gh/geek-fun/serverlessinsight/graph/badge.svg?token=ISW7MFuSlf)](https://codecov.io/gh/geek-fun/serverlessinsight)

**Full life cycle cross-provider serverless application management for your fast-growing business**
**Describe your app. We handle the rest.**

*Full life cycle cross-provider serverless application management for your fast-growing business*

[Website](https://serverlessinsight.geekfun.club) • [Documentation](https://serverlessinsight.geekfun.club) • [Examples](./samples) • [中文文档](./README.zh-CN.md)

Expand Down Expand Up @@ -344,6 +346,61 @@ For OSS static website hosting, ServerlessInsight supports:

For detailed configuration, see [OSS Custom Domain Binding Guide](./docs/oss-custom-domain-binding.md).

### CDN Acceleration & OSS Transfer Acceleration

ServerlessInsight supports CDN acceleration and OSS Transfer Acceleration for buckets, enabling global content delivery and optimized origin fetch.

**CDN** (`cdn`): Create a CDN distribution in front of your bucket for edge caching and global acceleration. Accepts `boolean` (simple on/off) or `object` for advanced configuration:

```yaml
buckets:
# Simple: CDN with sensible defaults
my_site:
name: my-static-site
website:
code: ./dist
index: index.html
domain:
domain_name: www.example.com
certificate_id: cas-abc123
cdn: true

# Advanced: CDN with custom config
releases:
name: app-releases
security:
acl: PRIVATE
domain:
domain_name: releases.example.com
cdn:
enabled: true
cdn_type: download # web | download | video
scope: global # domestic | overseas | global
```

**Transfer Acceleration** (`accelerate`): Enables OSS Transfer Acceleration for cross-region/global data transfers. Routes traffic through Alibaba backbone network:

```yaml
buckets:
cross_region_backups:
name: backup-bucket
domain:
domain_name: backups.internal.example.com
accelerate: true # No CDN, just accelerate

# CDN + Accelerate (dual-layer)
global_assets:
name: global-assets
domain:
domain_name: assets.example.com
cdn:
enabled: true
cdn_type: web
accelerate: true # CDN origin uses accelerated endpoint
```

**Backward Compatibility**: Existing `website.domain` config continues to work. When a bucket uses `website.domain` without the top-level `domain` block, a deprecation notice is logged suggesting migration to the canonical form.

---

## 🗄️ State Management
Expand Down
4 changes: 3 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![codecov](https://codecov.io/gh/geek-fun/serverlessinsight/graph/badge.svg?token=ISW7MFuSlf)](https://codecov.io/gh/geek-fun/serverlessinsight)

**为快速增长的业务提供全生命周期跨云服务商的 Serverless 应用管理**
**描述你的应用,剩下的交给我们。**

*为快速增长的业务提供全生命周期跨云服务商的 Serverless 应用管理*

[官方网站](https://serverlessinsight.geekfun.club) • [文档](https://serverlessinsight.geekfun.club) • [示例](./samples) • [English](./README.md)

Expand Down
611 changes: 611 additions & 0 deletions docs/adr/003-cdn-integration.md

Large diffs are not rendered by default.

Loading
Loading