T
T
Timokins2019-09-29 19:28:17
Nginx
Timokins, 2019-09-29 19:28:17

How to properly configure nginx+ssl sni with a large (very) number of hosts?

The question may be asked clumsily, but as it is.

There is interest in allowing users to connect their own domain to the service and upload a certificate.
But there is no idea how not to create a crutch.

If we assume that there are 10,000 such users, then we will have 10,000 server blocks.
Either I didn’t search well (I don’t rule it out), or there is practically no mention of how nginx will behave with so many configs or with one, but large.

Hence the question is born, how to do it right and what to expect from such use?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Dmitriev, 2019-09-29
@timokins

There is no difference - the nginx config(s) are kept in RAM.
Only at the start of nginx can there be overhead for reading from 10 thousand files instead of one.
That's right - a separate .conf file for each host.

K
ky0, 2019-09-29
@ky0

Now panel lovers will come running and tell you everything :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question