# in the proxy part, add in this: proxy_set_header X-Forwarded-Proto https;