# Oauth2 redirect\_uri uses HTTP when my forum is using HTTPS

**URL:** https://meta.discourse.org/t/oauth2-redirect-uri-uses-http-when-my-forum-is-using-https/91789
**Category:** SSO
**Tags:** oauth2
**Created:** [July 7, 2018, 4:25pm UTC](https://meta.discourse.org/t/oauth2-redirect-uri-uses-http-when-my-forum-is-using-https/91789 "2018-07-07T16:25:45Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![channing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/channing/32/125299_2.png) [@channing](https://meta.discourse.org/u/channing)
#### Post date: [July 8, 2018, 3:08am UTC](https://meta.discourse.org/t/oauth2-redirect-uri-uses-http-when-my-forum-is-using-https/91789/6 "2018-07-08T03:08:21Z")

</div>

I got it working. I used Certbot to manage Let’s Encrypt on my host system. It turned out that some rules Certbot added to the nginx config file is not fully compaitible with Discourse docker. I fixed it according to [Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247).

---

_[View the full topic](https://meta.discourse.org/t/oauth2-redirect-uri-uses-http-when-my-forum-is-using-https/91789)._
