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
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
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
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/;
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:
#