← Back
Proxy

Building a Self-Hosted Live Streaming CDN for HLS with OpenResty Edge

  • Why live HLS breaks a naive caching setup
  • Building it on OpenResty Edge: two page rules with opposite TTLs
  • The most critical step: the Use stale proxy cache action
  • A shield tier with gateway partitions: collapsing to one fetch network-wide
  • Verifying the configuration and load testing
  • FAQ
  • Why live HLS breaks a naive caching setup
  • Building it on OpenResty Edge: two page rules with opposite TTLs
  • The most critical step: the Use stale proxy cache action
  • A shield tier with gateway partitions: collapsing to one fetch network-wide
  • Verifying the configuration and load testing
  • FAQ

Accurately Restore the Real Client IP Address in OpenResty Edge

  • Set “Trusted hosts to set real IP” and “Real IP from” Globally
  • Configure the Application to Output the Client Address
  • Check the Client Address Received on OpenResty Edge
  • What is OpenResty Edge
Photo by Yichun Zhang
  • Set “Trusted hosts to set real IP” and “Real IP from” Globally
  • Configure the Application to Output the Client Address
  • Check the Client Address Received on OpenResty Edge
  • What is OpenResty Edge

How to Configure an SNI Proxy in OpenResty Edge: Route TLS by SNI Hostname Without Decryption

  • Create an SNI Proxy stream application
  • Create upstreams and SNI Server Name page rules
  • Add an SNI Proxy port to the gateway partition
  • Test the SNI proxy with curl and a browser
  • Create an SNI Proxy stream application
  • Create upstreams and SNI Server Name page rules
  • Add an SNI Proxy port to the gateway partition
  • Test the SNI proxy with curl and a browser

OpenResty Edge TCP Load Balancing: Proxy TCP Services Without Editing Nginx Config

  • Create a TCP (stream) application in OpenResty Edge
  • Add an upstream and page rule for TCP load balancing
  • Test the TCP proxy by connecting to MySQL through an edge node
  • Frequently asked questions
  • Create a TCP (stream) application in OpenResty Edge
  • Add an upstream and page rule for TCP load balancing
  • Test the TCP proxy by connecting to MySQL through an edge node
  • Frequently asked questions

OpenResty Edge gRPC Proxy: Distributed Reverse Proxy & Load Balancer with TLS Termination

  • Prepare a sample gRPC server and test it with grpcurl
  • Add the gRPC server as an upstream and enable the gRPC proxy in a page rule
  • Terminate TLS at the gateway and verify the gRPC proxy end to end
  • Prepare a sample gRPC server and test it with grpcurl
  • Add the gRPC server as an upstream and enable the gRPC proxy in a page rule
  • Terminate TLS at the gateway and verify the gRPC proxy end to end

EdgeLang Tutorial: How to Write Gateway & WAF Rules in OpenResty Edge

  • How EdgeLang Compiles Rules for Speed
  • How to Write an EdgeLang Page Rule (URL Redirect Example)
  • Test the EdgeLang Rule with curl
  • Modify an EdgeLang Rule: Exact vs. Prefix Match
  • How to Write WAF Rules in EdgeLang
  • EdgeLang User Manual and More Examples
  • FAQ
  • How EdgeLang Compiles Rules for Speed
  • How to Write an EdgeLang Page Rule (URL Redirect Example)
  • Test the EdgeLang Rule with curl
  • Modify an EdgeLang Rule: Exact vs. Prefix Match
  • How to Write WAF Rules in EdgeLang
  • EdgeLang User Manual and More Examples
  • FAQ

How to Run a Real-Time Cache Purge Network-Wide in OpenResty Edge

  • Create a real-time cache purge job in OpenResty Edge
  • Verify the cache status with the Cache-Status header
  • Purge cache across the whole network with no reload
  • Purge cache by URL prefix
  • Custom purge conditions
  • FAQ
Photo by Yichun Zhang
  • Create a real-time cache purge job in OpenResty Edge
  • Verify the cache status with the Cache-Status header
  • Purge cache across the whole network with no reload
  • Purge cache by URL prefix
  • Custom purge conditions
  • FAQ

Enable HTTP Cache in OpenResty Edge: Proxy Cache Without Cache-Control Headers

  • Enable proxy cache in a page rule and set the cache key
  • Test the cache and verify Cache-Status HIT/MISS with curl
  • Enforce caching without a Cache-Control header
  • Frequently asked questions
Photo by Yichun Zhang
  • Enable proxy cache in a page rule and set the cache key
  • Test the cache and verify Cache-Status HIT/MISS with curl
  • Enforce caching without a Cache-Control header
  • Frequently asked questions

How to Set Up a Simple Reverse Proxy and Load Balancer with OpenResty Edge

  • Set up an OpenResty Edge reverse proxy and load balancer from the web console
  • Create an application and an upstream for your backend
  • Add a round-robin page rule
  • Release the config to every gateway node and verify with curl
Photo by Yichun Zhang
  • Set up an OpenResty Edge reverse proxy and load balancer from the web console
  • Create an application and an upstream for your backend
  • Add a round-robin page rule
  • Release the config to every gateway node and verify with curl
Contact us

Love to hear from you, Get in touch 👋

Message was sent successfully!

Our Team will get back to you within 24 hours.
x