# Companion generates redirect URLs without SSL

**URL:** <https://community.transloadit.com/t/companion-generates-redirect-urls-without-ssl/16264>\
**Category:** Uppy\
**Created:** [September 21, 2022, 3:32pm UTC](https://community.transloadit.com/t/companion-generates-redirect-urls-without-ssl/16264 "2022-09-21T15:32:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ameft](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ameft/32/17_2.png) [@ameft](https://community.transloadit.com/u/ameft)\
**Post date:** [September 21, 2022, 3:32pm UTC](https://community.transloadit.com/t/companion-generates-redirect-urls-without-ssl/16264/1 "2022-09-21T15:32:46Z")

</div>

Hi, I’ve managed to install a standalone version of Companion 4 on Heroku, here: [https://obscure-caverns-32848.herokuapp.com/](https://obscure-caverns-32848.herokuapp.com/)

I’ve configured the env variables to add Google Drive and Facebook uploads from my apps, the only problem I have is that in both cases Companion automatically generates the redirect URLs without HTTPS but only with HTTP, and this is not allowed in neither cases. Ex: [http://obscure-caverns-32848.herokuapp.com/facebook/redirect](http://obscure-caverns-32848.herokuapp.com/facebook/redirect)

I didn’t find any config to change this behavior and any explanation in the docs, any help?

Thank you!

---

<div class="post-metadata">

**Author:** ![mifi](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mifi/32/603_2.png) [@mifi](https://community.transloadit.com/u/mifi)\
**Post date:** [September 23, 2022, 7:30pm UTC](https://community.transloadit.com/t/companion-generates-redirect-urls-without-ssl/16264/2 "2022-09-23T19:30:13Z")

</div>

Hi! Have you tried with the protocol option https? `COMPANION_PROTOCOL=https`

---

<div class="post-metadata">

**Author:** ![ameft](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ameft/32/17_2.png) [@ameft](https://community.transloadit.com/u/ameft)\
**Post date:** [September 27, 2022, 3:01pm UTC](https://community.transloadit.com/t/companion-generates-redirect-urls-without-ssl/16264/3 "2022-09-27T15:01:33Z")

</div>

Damn! Here it is… I’ve just tried with Facebook and it now works, thank you @mifi !!  
I’ve looked many times in the docs for this option, but I’ve completely missed it, it’s not so obvious or clear the description, maybe it should be added some mention about HTTPS/SSL, this is what I was looking for.

---

<div class="post-metadata">

**Author:** ![mifi](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mifi/32/603_2.png) [@mifi](https://community.transloadit.com/u/mifi)\
**Post date:** [September 28, 2022, 9:32am UTC](https://community.transloadit.com/t/companion-generates-redirect-urls-without-ssl/16264/4 "2022-09-28T09:32:51Z")

</div>

Great! We will improve the docs, thanks
