Teamcity Hub Integration Plugin use Internal Server IP

Answered

Hi 

we use teamcity behind an apache server.

When teamcity redirects to hub, the redirect uri contains the ip from the apache config. 

Our apache config looks like this

<VirtualHost 10.1.1.9:443>

ServerName ci.domain.com
´ProxyRequests Off
ProxyPass /app/subscriptions ws://127.0.0.1:8111/app/subscriptions connectiontimeout=240 timeout=1200
ProxyPassReverse /app/subscriptions ws://127.0.0.1:8111/app/subscriptions
ProxyPass / http://127.0.0.1:8111/ connectiontimeout=5 timeout=300
ProxyPassReverse / http://127.0.0.1:8111/
RequestHeader set X-Forwarded-Proto "https"
SSLEngine on
SSLCertificateFile "/etc/ssl/test.crt"
SSLCertificateKeyFile "/etc/ssl/test.key"
</VirtualHost>

 

The redirect url looks like this 

http://127.0.0.1:8111/hubPlugin/login.html?code=d5oVWCad&state=%2F

 

Is there a way to use the FQDN in the redirection URI

 

Thanks

Daniel

6 comments

Hello, Alina.

I have the same problem, can you give me a correct link for resolving this? Thanx!

0

hi,

How did you resolve ?

I also have apache on port 80 and then use proxy to redirect to:
<VirtualHost *:80>
    ServerName my-project.com
    
    RewriteEngine on
    AllowEncodedSlashes on
    
    ProxyRequests       Off
    #ProxyPreserveHost   On
    ProxyPass /app/subscriptions ws://127.0.0.1:8000/app/subscriptions connectiontimeout=240 timeout=1200
    ProxyPassReverse /app/subscriptions ws://127.0.0.1:8000/app/subscriptions

    ProxyPass / http://127.0.0.1:8000/ connectiontimeout=240 timeout=1200
    ProxyPassReverse / http://127.0.0.1:8000/
</VirtualHost>

0

Hello Yoann,

Sorry for delay in replying. Is the issue still actual? Have you configured proxy server and Tomcat as noted in this section

0

Please sign in to leave a comment.