# Installing Discourse With Plesk Onyx (Ubuntu 14.04)

**URL:** <https://meta.discourse.org/t/installing-discourse-with-plesk-onyx-ubuntu-14-04/65602>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [Juillet 4, 2017, 4:56 UTC](https://meta.discourse.org/t/installing-discourse-with-plesk-onyx-ubuntu-14-04/65602 "2017-07-04T16:56:53Z")\
**Posts on this page:** 1\
**Showing post:** 46

<div class="post-metadata">

**Author:** ![SvenC56](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/svenc56/32/132235_2.png) [@SvenC56](https://meta.discourse.org/u/SvenC56)\
**Post date:** [Février 25, 2019, 10:11 UTC](https://meta.discourse.org/t/installing-discourse-with-plesk-onyx-ubuntu-14-04/65602/46 "2019-02-25T22:11:38Z")

</div>

I was able to activate HTTPS in Discourse. I even don’t get the csrf token error any more if I try to login. Thank you @fhe @pfaffman

For future Googlers:

## Additional nginx directives

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/b/fb274152712dce7aabd5bac7c093b3e3cc356823.png)

```
location ~ / {
	proxy_set_header Host $host;
	proxy_set_header X-Real-IP $remote_addr;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header X-Forwarded-Proto https;
	proxy_pass http://localhost:8060;
}

```

## Security

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/b/4bd6151291f5ab66040a972834322aed64ffc1fd.png)

## Discourse Settings

`force https` ← On

## app.yml

No changes regarding SSL.

### Template Section

```
## Uncomment these two lines if you wish to add Lets Encrypt (https)
  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.template.yml"
  #- "templates/web.socketed.template.yml" 

```

### Expose Section

```
expose:
  - "8060:80" # http
  - "9443:443" # https

```

---

_[View the full topic](https://meta.discourse.org/t/installing-discourse-with-plesk-onyx-ubuntu-14-04/65602)._
