nginx php-fpm increase a timeout in new version
-
I setup ACME, multiple domain with DNS verification. I got nginx php-fpm timeout and can not renew my certificate anymore.
I remember that, in earlier versions I could set proxy_read_timeout and keepalive_timeout in
/usr/local/etc/nginx/nginx.conf and max execution in php.ini and got success.However, latest versions I can not setup it. Can someone help me with this issue? How can I set this timeout?
Here is the error log:
Nov 26 12:19:52 nginx 2024/11/26 12:19:52 [error] 28830#100327: *1112 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 132.101.29.31, server: , request: "POST /acme/acme_certificates.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.socket", host: "mysserverhost:port", referrer: "https://mysserverhost:port/acme/acme_certificates.php"
-
@Almas said in nginx php-fpm increase a timeout in new version:
/usr/local/etc/nginx/nginx.conf and max execution in php.ini and got success.
That nginx.conf is part of the 'FreeBSD' standard nginx setup, but not/never used in pfSense.
The pfSense GUI nginx main configuration file is here /var/etc/nginx-webConfigurator.conf
-
@Gertjan said in nginx php-fpm increase a timeout in new version:
That
I tried to edit /var/etc/nginx-webConfigurator.conf but it is reset after reboot. It seems this file is created automatically.
Do you know about this? -
Thank you for pointing out.
I found that "/etc/inc/system.inc" was used to generate the /var/etc/nginx-webConfigurator.confIt seems I resolved and passed my issue.
-
@Almas said in nginx php-fpm increase a timeout in new version:
I tried to edit /var/etc/nginx-webConfigurator.conf
You can edit that file yourself the classic way.
That is, you can, and you'll discover that your changes are 'gone' every soon afterwards.
It's pfSense that creates and mains all the config file for every process, using the settings you can find in the GUI.If you want to edit or add things, look in this file /etc/inc/system.inc - around line 17xx : look for the function system_generate_nginx_config.
That's where the nginx-webConfigurator.conf is created.edit, great, you've figured it out already
-
@Gertjan
Thank you very much