Proxy pass:
server {
#The listen directive serves content based on the port defined. listen 80; # For IPv4 addresses
listen [::]:80; # For IPv6 addresses # Replace the below if you have a domain name pointed to the server. server_name your-domain.com; access_log /var/log/nginx/reverse-access.log; error_log /var/log/nginx/reverse-error.log; location / { # Specify the proxied server's address proxy_pass http://127.0.0.1:8000>; } }
Si el dominio es example.jumpserver.org, entonces:
certbot --nginx -d example.jumpserver.org
o, si quieres varios devices:
upstream backend {
server backend1.example.com:80;
server backend2.example.com:80;
server backend3.example.com:80;
}
server {
...
proxy_pass http://backend;