server {
listen 443 ssl;
ssl_certificate /etc/cert.crt;
ssl_certificate_key /etc/cert.key;
location /pro/ {
proxy_pass https://server-2/;
}
}
server {
listen 443 ssl;
ssl_certificate /etc/cert.crt;
ssl_certificate_key /etc/cert.key;
location /pro/ {
proxy_pass http://nodejs_app/;
}
}