Spawning nginx instance on demand

Andre Rodier <[email protected]>
Newsgroups gmane.linux.debian.user
Message-ID <[email protected]>
Hello,

I have an Nginx server running on Debian Trixie, as a "user" systemd
service. It is working, but if I have 100 users, I don't want to spawn
100 nginx servers just for waiting for connections.

Each nginx instance "listen" on a unix socket in /run/user directory.

I tried sockets triggering, and while the log is working, triggering
the nginx server fails, because the socket is already opened.

Is there a better way to achieve this, i.e. spawning nginx instance on
demand ?

Thanks.

-- 
🌐 https://rodier.me/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQQgxtr4dsuCnRR2flvDkWYfWv7tQgUCahxvXAAKCRDDkWYfWv7t
Qu08AP9UDLYYNUdh9rner3dCnRyQw8dxDnwCh1msKCx0Q8+7RQEAgiokPdS/rHaL
wc00OsJ0PoxgMiVl4VyC05RceH7P9g8=
=fxlV
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.