# Gitlab\_Mattermost setup unable to redirect http to https

**URL:** <https://forum.mattermost.com/t/gitlab-mattermost-setup-unable-to-redirect-http-to-https/13915>\
**Category:** Troubleshooting\
**Created:** [August 23, 2022, 7:22pm UTC](https://forum.mattermost.com/t/gitlab-mattermost-setup-unable-to-redirect-http-to-https/13915 "2022-08-23T19:22:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [August 24, 2022, 4:12am UTC](https://forum.mattermost.com/t/gitlab-mattermost-setup-unable-to-redirect-http-to-https/13915/2 "2022-08-24T04:12:57Z")

</div>

I found another topic with the same problem:

> [@GitLab SSO: The redirect URI included is not valid](https://forum.mattermost.com/t/gitlab-sso-the-redirect-uri-included-is-not-valid/12515):
>
> Summary The error “The redirect URI included is not valid.” when logging in to Mattermost with GitLab Steps to reproduce I’m using the latest version of Mattermost [Free version] and the official [www.gitlab.com](http://www.gitlab.com). So no self hosted gitlab or something. Expected behavior Logging in to Mattermost with GitLab Observed behavior I’m getting the error The redirect URI included is not valid. The uri’s are: http://localhost:8065/login/gitlab/complete http://localhost:8065/login/gitlab/complete A…

And I found an older [GitHub Issue](https://github.com/mattermost/mattermost-server/issues/3944) which suggests that this could be caused by a misbehaving proxy (i.e. sending the `X-Forwarded-Proto` header with a wrong value).

You said that you have Mattermost and Gitlab installed on two different servers using the omnibus installation. Can you describe your setup a little bit more, please? On server 1, where Mattermost is running, has this been installed using the Mattermost omnibus installation? If so, can you please share the contents of the files `/etc/mattermost/mmomni.yml`, `/etc/mattermost/mmomni.mattermost.env` and `/etc/nginx/conf.d/mattermost.conf`?

Make sure to remove passwords and other sensitive information from these files, please.

---

_[View the full topic](https://forum.mattermost.com/t/gitlab-mattermost-setup-unable-to-redirect-http-to-https/13915)._
