本文へスキップ

Cloudflare Containers

活発
cloudflare/containers

Cloudflare Workers からコンテナを動かす公式クラス @cloudflare/containers。リクエストのプロキシ、WebSocket 転送、送信リクエストの制御、ライフサイクルフック、負荷分散に対応。

GitHub で見る
スター
279
フォーク
45
ウォッチ
279
未解決の Issue
65

この紹介文は現在英語版のみです。

Overview

@cloudflare/containers is the official class for interacting with Containers on Cloudflare Workers. It extends a container-enabled Durable Object with container-specific functionality.

Features

  • HTTP request proxying and WebSocket forwarding
  • Outbound request interception by host or with a catch-all handler, including HTTPS
  • Host allow/deny lists with glob patterns
  • Simple lifecycle management — start and stop containers
  • Event hooks: onStart, onStop and onError
  • A configurable sleep timeout that renews on each request
  • Load-balancing helpers such as getRandom

Installation

npm install @cloudflare/containers

Extend the Container class, set a defaultPort, and route requests to an instance with getContainer.

共通のカテゴリとタグで順位付けした、似たオープンソースプロジェクトです。

すべての DevOps プロジェクト →