Full Restrict SSL with ELB and nginx


I’m facing some problems to make works Cloudflare full restrict SSL with AWS ELB, running EC2 with Nginx.
I don’t know if i should do something else on AWS side, but I’ll already post my nginx configuration:

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    ssl_certificate     /etc/ssl/certs/myappdomain.com.pem;
    ssl_certificate_key /etc/ssl/private/myappdomain.com.key;
    server_name www.myappdomain.com myappdomain.com;
    client_max_body_size 2G;
    location = /favicon.ico { access_log off; log_not_found off; }
    location /static {
	autoindex on;
        alias /var/www/html/static/;
    location / {
        include proxy_params;
        proxy_pass http://unix:/var/log/gunicorn/app.sock;

Both files .pem and .key I generated on Cloudflare side.
I’m suspecting something related with security groups on AWS.


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.