"PfSense acme certificates timeout fix"-ны өөр хувилбарууд
Дусал нэвтэрхий толь-с
(Хэрэглэгчид 6 дундын хувилбарууд харагдахгүй) | |||
1-р мөр: | 1-р мөр: | ||
− | + | By default we might have following error with Acme plugin of pfSense. | |
<pre> | <pre> | ||
− | keepalive_timeout | + | 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. | ||
+ | If you add 300000 ms then it means 5 minutes. | ||
+ | |||
+ | <pre> | ||
+ | <webgui> | ||
+ | ... | ||
+ | <connection_timeout>300000</connection_timeout> | ||
+ | <server_timeout>300000</server_timeout> | ||
+ | </webgui> | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | For old versions: | ||
+ | |||
+ | In pfsense, the nginx conf file is at /usr/local/etc/nginx/nginx.conf | ||
+ | |||
+ | <pre> | ||
+ | keepalive_timeout 300; | ||
location / { | location / { | ||
10-р мөр: | 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; }