I am planning to use Nginx as a REVERSE PROXY for only one user + load balancing something like:
I know I can use something like
if I move/transfer the user to another server.
I can also make another conf, like nginx-custom.conf but then I couldn't have let's encrypt I assume.
So I am looking how can I possible integrate this in the user's conf, make it have let's encrypt, persist, and if I move the user to another server it will be there too.
upstream cluster {
ip_hash;
server x.x.x.x:443 weight=10;
server x.x.x.x:443 weight=20;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name user-domain-goes-here;
location / {
proxy_pass http://cluster/;
}
}
I know I can use something like
But I would like to know if there a way to edit only the specific user's configuration and make it persist not only when updating but evencd /usr/local/directadmin/data/templates/custom/
cp -p ../nginx_server.conf .
cp -p ../nginx_server_secure.conf .
if I move/transfer the user to another server.
I can also make another conf, like nginx-custom.conf but then I couldn't have let's encrypt I assume.
So I am looking how can I possible integrate this in the user's conf, make it have let's encrypt, persist, and if I move the user to another server it will be there too.