Re: Proxy pass set body on if

2021-02-23 Thread sanflores
Awesome, this approach totally work, thank you very much: worker_processes auto; error_log /var/log/nginx/error.log warn; pid/var/run/nginx.pid; events { worker_connections 1024; } http { default_type application/octet-stream; log_format main '$remote_addr - $remot

Re: Proxy pass set body on if

2021-02-22 Thread sanflores
First of all, thanks for your help. Here is my configuration: cat nginx.conf - worker_processes auto; error_log /var/log/nginx/error.log warn; pid/var/run/nginx.pid; events { worke

Re: Proxy pass set body on if

2021-02-22 Thread sanflores
This would be great, but I don't know how to server the context from nginx with a rewrite, what would work is: if ($is_NOT_a_bot) { rewrite in order to save the content in /usr/share/nginx/html } proxy_pass Posted at Nginx Forum: https://forum.nginx.org/read.php?2,290773,290820#msg-290820

Proxy pass set body on if

2021-02-16 Thread sanflores
I have an Angular app and need to use puppeteer for SSR. In order to make it work I need to send the request with the body but I can't figure how to make these things work together. if ($limit_bots = 1){ proxy_pass http://localhost:3000/puppeteer/download/html/;

upstream sent no valid HTTP/1.0 header while reading response header from upstream,

2021-01-26 Thread sanflores
I'm using tomcat as a backend (using websocket), and is hostead on AWS behind a balancer. After a some time (acording to timeouts) I'm starting to get the error that the upstream sent no valid HTTP/1.0, but what is strange, is that I'm only using HTTP/1.1, this is my configuration: #