# Ho installato Discourse su Digital Ocean, ma ora non riesco a installare nginx?

**URL:** <https://meta.discourse.org/t/installed-discource-on-digital-ocean-but-now-cannot-install-nginx/106361>\
**Category:** Self-hosting\
**Created:** [12 Gennaio 2019, 4:24pm UTC](https://meta.discourse.org/t/installed-discource-on-digital-ocean-but-now-cannot-install-nginx/106361 "2019-01-12T16:24:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)\
**Post date:** [12 Gennaio 2019, 7:38pm UTC](https://meta.discourse.org/t/installed-discource-on-digital-ocean-but-now-cannot-install-nginx/106361/8 "2019-01-12T19:38:56Z")

</div>

> [@smlemk](#):
>
> Are there tutorials for this? I literally just want a static website with 3 links, one for the wiki, forum, and support. Nothing too complex. I’m assuming I just need to change the port that discource is listening too and then I can get nginx running fine. But alas I have no idea how to do that.

This is how we’ve done it.

1. Discourse is running on port 8080 without letsencrypt.

2. letsencrypt scripts have been installed  
2.1 letsencrypt updating is handled by a cron job  
2.2 We use AWS for DNS. In our setup letsencrypt requires access to AWS to create certificates - currently, we use wildcards.

3. Nginx handles port 80 and swaps it to port 443  
3.1 Nginx sends request upstream to discouse.  
3.2 Here is an example nginx config

---

_[View the full topic](https://meta.discourse.org/t/installed-discource-on-digital-ocean-but-now-cannot-install-nginx/106361)._
