# Issue Onebox in HTTPS

**URL:** <https://meta.discourse.org/t/issue-onebox-in-https/57904>\
**Category:** Self-hosting\
**Created:** [February 24, 2017, 3:45pm UTC](https://meta.discourse.org/t/issue-onebox-in-https/57904 "2017-02-24T15:45:24Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)\
**Post date:** [May 18, 2017, 11:43pm UTC](https://meta.discourse.org/t/issue-onebox-in-https/57904/9 "2017-05-18T23:43:18Z")

</div>

> [@Falco](#):
>
> That said, if you have all the correct headers set, it will work.

Which headers would that be?

Here’s what I have:

```
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;                                                                                           
            client_max_body_size 20M;
            error_page 502 =502 /errorpages/offline.html;
            proxy_intercept_errors on;
            error_page 500 503 504 /errorpages/50x.html;
}

```

---

_[View the full topic](https://meta.discourse.org/t/issue-onebox-in-https/57904)._
