"PfSense acme certificates timeout fix"-ны өөр хувилбарууд

Дусал нэвтэрхий толь-с
 
(Хэрэглэгчид 4 дундын хувилбарууд харагдахгүй)
1-р мөр: 1-р мөр:
 +
By default we might have following error with Acme plugin of pfSense.
 +
 +
<pre>
 +
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",
 +
</pre>
 +
 +
'''How to fix:'''
 +
 
Add the following properties to <webgui> in /conf/config.xml file.
 
Add the following properties to <webgui> in /conf/config.xml file.
If you add 600000 ms then it means 10 minutes.
+
If you add 300000 ms then it means 5 minutes.
  
 
<pre>
 
<pre>
 
<webgui>
 
<webgui>
 
     ...
 
     ...
     <connection_timeout>60000</connection_timeout>
+
     <connection_timeout>300000</connection_timeout>
     <server_timeout>60000</server_timeout>
+
     <server_timeout>300000</server_timeout>
 
</webgui>
 
</webgui>
 
</pre>
 
</pre>
  
In pfsense, the nginx conf file is at /usr/local/etc/nginx/nginx.conf
+
 
 +
For old versions:
 +
 
 +
In pfsense, the nginx conf file is at /usr/local/etc/nginx/nginx.conf
  
 
<pre>
 
<pre>
  keepalive_timeout  600;
+
  keepalive_timeout  300;
 
    
 
    
 
     location / {
 
     location / {
21-р мөр: 32-р мөр:
 
     }
 
     }
 
</pre>
 
</pre>
 +
 +
[[Ангилал:Сисадмин]]

16:55, 22 Есдүгээр сар 2024-ий байдлаарх одоогийн засвар

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;
    }