Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

Oauth not valid behind reverse proxy

$
0
0

Hello everyone,

I am using gitlab and mattermost behind reverse proxy on same domain and same server (as I use omnibus installation).

When I try to make the link between mattermost and gitlab by creating a team on the mattermost startup screen, I am redirected to Gitlab to validate the application but I have this error : The redirect URI included is not valid.

When I check the url, I can see that there is http instead of https : https://git.domain.com/oauth/authorize?response_type=code&client_id=xxxxxx&redirect_uri=http%3A%2F%2Fmat.domain.com%2Fsignup%2Fgitlab%2Fcomplete&state=yyyyyyyyy

How can I change http to https in the redirect_uri parameter ? When I change it manually, Gitlab seems to detect mattermost.

Here is my gitlab.rb : external_url 'https://git.domain.com'

....
nginx['listen_port'] = 80
nginx['listen_https'] = false
....
mattermost_external_url 'https://mat.domain.com'
mattermost_nginx['listen_port'] = 80
mattermost_nginx['listen_https'] = false

Thank you in advance for your help


Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>