pingora icon indicating copy to clipboard operation
pingora copied to clipboard

need more examples or docs just like some nginx cases build with pingora

Open dayuoba opened this issue 1 year ago • 1 comments

i want to trans some nginx case to pingora like:

server {
    listen 80;
    server_name example.com;
    location /serviceA/ {
        max_body_size 100m;
        proxy_pass http://serviceA.example.com/; 
    }
    
    location /serviceB/ {
        max_body_size 20m;
        proxy_pass http://serviceB.example.com/;
    }
}

i need more documents to help me do this the best practice way

dayuoba avatar Mar 01 '24 07:03 dayuoba

there's an example for that already https://github.com/cloudflare/pingora/blob/main/docs/user_guide/modify_filter.md

mustafasegf avatar Mar 13 '24 17:03 mustafasegf

Hi folks! Thanks @mustafasegf -- yeah, seems that the Routing + Return Error pages examples covers how you can proxy_pass and send error responses based on certain conditions of the request. @dayuoba do you have any remaining question here?

gdavidsson avatar Apr 05 '24 20:04 gdavidsson

Closing this as answered.

drcaramelsyrup avatar Apr 09 '24 20:04 drcaramelsyrup