# Using Cloudflare for HTTPS, empty preview pane in edit page

**URL:** <https://meta.discourse.org/t/using-cloudflare-for-https-empty-preview-pane-in-edit-page/69146>\
**Category:** Product Support\
**Created:** [August 31, 2017, 2:26pm UTC](https://meta.discourse.org/t/using-cloudflare-for-https-empty-preview-pane-in-edit-page/69146 "2017-08-31T14:26:23Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![pokapow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pokapow/32/77900_2.png) [@pokapow](https://meta.discourse.org/u/pokapow)\
**Post date:** [August 31, 2017, 3:28pm UTC](https://meta.discourse.org/t/using-cloudflare-for-https-empty-preview-pane-in-edit-page/69146/10 "2017-08-31T15:28:18Z")

</div>

This is my nginx config:

```
server {
    listen 80;
    server_name forum.exemple.com;

    location / {

        proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
        proxy_set_header Host $http_host;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        auth_basic "Staff only";
        auth_basic_user_file /etc/nginx/.htpasswd/.htpasswd-staff;

    }

    access_log /var/log/nginx/forum_access.log;
    error_log /var/log/nginx/forum_error.log;
}

```

The thing is, it’s CloudFlare who make the https redirect rules. So I have to listen the port 80 in nginx, else it doesn’t work…  
The case “Force https” is not active in admin. Should I ?

---

_[View the full topic](https://meta.discourse.org/t/using-cloudflare-for-https-empty-preview-pane-in-edit-page/69146)._
