PfSense acme certificates timeout fix
Дусал нэвтэрхий толь-с
By default we might have following error with Acme plugin of pfSense.
xxxx/xx/xx xx:xx:xx [error] xxxxx#xxxxxx: *xxxx upstream timed out (60: Operation timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: , request: "POST /acme/acme_certificates.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.socket",
How to fix:
Add the following properties to <webgui> in /conf/config.xml file. If you add 300000 ms then it means 5 minutes.
<webgui> ... <connection_timeout>300000</connection_timeout> <server_timeout>300000</server_timeout> </webgui>
For old versions:
In pfsense, the nginx conf file is at /usr/local/etc/nginx/nginx.conf
keepalive_timeout 300; location / { root /usr/local/www/nginx; index index.html index.htm; proxy_read_timeout 3600; }