I have the following structure at AWS:
Route 53 DNS -> HTTPS Load Balancer(South America) -> Varnish(South America) -> Nginx(South America) -> Route 53 -> HTTPS Load Balancer(Oregon) -> Backend Ec2 instances(Oregon).
I know, it can be improved, but now I need to solve this thing. I can't connect to the Load Balancer in Oregon. I generated the certificates with AWS ACM. That's my config in Nginx:
include /etc/nginx/conf.d/*.conf;
server {
listen 8080 default_server;
listen [::]:8080 default_server;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
proxy_pass https://mydns:443/;
proxy_set_header X-Real-IP $remote_addr;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
}
Should I need to configure SSL in Nginx? And if so, how can I get the certificate generated at AWS?
Thank you now!