teamcity 2019.1 gitlab integration

Hi All,

I am trying to integrate teamcity 2019.1 with gitlab CE 11.11.

My teamcity is configured behind apache as reverse proxy and i am having the following problems:

1) teamcity shows up a warning about "Some users cannot use optimized web UI updates via WebSocket protocol" so i guess i might have not setup correctly the reverse proxy, are there any hints on what should i do to fix this problem?

2) when i try to create a gitlab repository from the connection i configured i get an error from gitlab, basically both gitlab anf TC are configured behind reverse proxy so in every configuration i made in redirect_uri while configuring the connection i specified https. The problem is that the redirect_uri that i see passed from tc to gitlab when i click on the "sign in to gitlab" button when creating a project in TC the redirect_uri parameter is contains the string http and not https. What shall i do?

the apache configuration for the virtual host is the following

<VirtualHost *:443>
ServerName teamcity.mydomain.com
RewriteEngine on
AllowEncodedSlashes on

RewriteCond %{QUERY_STRING} transport=polling
RewriteRule /(.*)$ http://127.0.0.1:8111/$1 [P]


RequestHeader set X-Forwarded-Proto "https"

ProxyRequests off
ProxyPass /~socket.io/ ws://127.0.0.1:8111/~socket.io/
ProxyPassReverse /~socket.io/ ws://127.0.0.1:8111/~socket.io/

</VirtualHost>

 

 

0
1 comment

Both problems were due to bad apache proxy configuration.

0

Please sign in to leave a comment.