Hestia Templates and Configuration

Hello, I asked myself this question

  1. I took the main Nginx config and added etc/nginx/nginx. conf , got no errors
quic_retry 	on;
quic_gso on;
  1. I took /usr/local/hestia/nginx/conf/nginx. conf and added the same thing, got errors with both directives
nginx: [emerg] unknown directive "quic_retry" in /usr/local/hestia/nginx/conf/nginx.conf:18
мар 26 02:24:20 hestia.angellive.ru systemd[1]: hestia.service: Control process exited, code=exited, status=1/FAILURE
# Server globals
user                 hestiaweb;
worker_processes     1;
worker_rlimit_nofile 65535;
error_log            /var/log/hestia/nginx-error.log;
pid                  /run/hestia-nginx.pid;
pcre_jit             on;

# Worker config
events {
	worker_connections 128;
	use                epoll;
	multi_accept       on;
}

http {
	# Main settings
	quic_retry 	on; 
	quic_gso on; 
	http2                         on;
	sendfile                      on;
	tcp_nopush                    on;
	tcp_nodelay                   on;
	client_header_timeout         180s;

  1. Here’s what I’d like to understand about how these settings work. If, for example, I use v-rebuild-web-domain user templates opensourse.angellive.ru, then it is clear that when I made changes to the template and applied it, it is applied in /home/user/… And what happens if the main Nginx changes, why the settings from it do not get into Nginx Hestia or me don’t use them somehow? Also, why does the main Nginx take these directives without errors and the Hestia config does not?)
  2. Excuse me if I don’t understand something)

Hi @bestperson

Because Nginx used by Hestia (used to serve the Control Panel) is not compiled to support http_v3.

Global Nginx:

❯ nginx -V 2>&1 | grep -o -- '--with-http_v3_module' || echo "http_v3 not supported"
--with-http_v3_module

Hestia’s Nginx:

❯ /usr/local/hestia/nginx/sbin/hestia-nginx -V 2>&1 | grep -o -- '--with-http_v3_module' || echo "http_v3 not supported"
http_v3 not supported
1 Like

Thanks a lot. Mmm and how to understand this, also, it turns out two different versions of Nginx?). I’ll go read on the net as possible.

I found on the network that 2 Nginx instances are installed, one with a full set of modules, the other for the panel itself with a minimum set. Maybe someone will need it. And I was still surprised when the panel fell, the sites were available))

1 Like

We compile for Hestia panel our own nginx called hestia-nginx

2 Likes