Closed cod3rshotout closed 2 years ago
I don´t think this is a bug, but a question.
You must have the configuration loaded in nginx ontianer. Did you check if it was loaded as expected?
Where did you place your timeout.conf? Which folder?
Check this as well:
https://github.com/evertramos/nginx-proxy-automation/issues/220
I don´t think this is a bug, but a question.
You must have the configuration loaded in nginx ontianer. Did you check if it was loaded as expected?
Where did you place your timeout.conf? Which folder?
Check this as well:
220
Hi, thanks for the quick reply and sorry for the bug label.
The folder is this: https://github.com/evertramos/nginx-proxy-automation/tree/master/conf.d
and the file timeout.conf
should be automatically added to the nginx configuration.
I'm checking the resources you gave to me, but I hope to a further help on your side
@cod3rshotout the folder conf.d is only copied once when you use fresh-start.sh script with option --use-nginx-conf-files.
Other wise you must check your .env to see where the nginx files are and add this file there, so the nginx can read them from inside the container.
After you do that you must reload the nginx and check if your settings are there.
@cod3rshotout the folder conf.d is only copied once when you use fresh-start.sh script with option --use-nginx-conf-files.
Other wise you must check your .env to see where the nginx files are and add this file there, so the nginx can read them from inside the container.
Yep, when I've installed the proxy I used the --use-nginx-conf-files
flag, so the file should be available in the nginx configuration.
Forgot to say that when I use nginx -s reload
I get:
"keepalive_timeout" directive is duplicate in /etc/nginx/conf.d/timeout.conf:6 nginx: [emerg] "keepalive_timeout" directive is duplicate in /etc/nginx/conf.d/timeout.conf:6
this is the content of timeout.conf
:
fastcgi_read_timeout 600s;
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
send_timeout 600s;
keepalive_timeout 600s;
I was able to fix it, the issue isn't related to the nginx-proxy-automation
container but on the app container, to fix it I've added this on the location block:
fastcgi_read_timeout 60000;
so it would be:
location ~ [^/]\.php(/|$) {
add_header Access-Control-Allow-Origin *;
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_pass php-upstream;
fastcgi_index index.php;
fastcgi_read_timeout 60000;
}
Hi,
I'm trying to run a really long script over
nginx-proxy-automation
, after 60s I get from nginx this error:I tried to fix this increasing the timeout value in the
proxy-web-auto
container, so I have created a new file within theconf.d
folder calledtimeout.conf
with the following content:In this way the script should run for 10 minutes max.
Then I executed this command:
docker-compose down -v
anddocker-compose up --build
and tested again the script, but again, after a minute the same nginx error.The app, run over
php-fpm
andnginx
and I have two container:This the nginx configuration:
docker/nginx/conf.d/default.conf
docker/nginx/site/default.conf
docker/nginx/nginx.conf
How can I fix this problem?