cloudflare / pingora

A library for building fast, reliable and evolvable network services.
Apache License 2.0
21.01k stars 1.16k forks source link

Pingora as modern server host #332

Closed EAzari closed 1 month ago

EAzari commented 1 month ago

What is the problem your feature solves, or the need it fulfills?

Based on my understanding Pingora can serve as a modern server host too, so do you have any plan to make it easy-to-use as an alternative to traditional server hosts like Nginx and others?

Describe the solution you'd like

A simple configuration and rule management point can simplify processes An example:

// Edge caching
route /static/* {
    cache {ttl 3600s}
    serve /static/
}
// Traffic management
route /api/* {
    proxy {
        pass http://fastapi-backend // backend service
        health-check /health
    }
}
// Content optimization
route / {
    proxy {
        pass http://backend-server // backend service
        optimize {
            compress
            minify html, css, js
            security {
                headers {
                    Content-Security-Policy "default-src 'self';"
                    X-Content-Type-Options "nosniff"
                }
            }
        }
    }
}
jabley commented 1 month ago

See https://github.com/memorysafety/river which will use pingora to provide a modern reverse-proxy.

jamesmunns commented 1 month ago

Yep, feel free to open any issues over in the River repo, or let us know if you see anything missing on our roadmap.

github-actions[bot] commented 1 month ago

This question has been stale for a week. It will be closed in an additional day if not updated.

github-actions[bot] commented 1 month ago

This issue has been closed because it has been stalled with no activity.