Teamcity Hub Integration Plugin use Internal Server IP
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
Please sign in to leave a comment.
Hello Daniel,
Did you configure Tomcat as described in this section: https://confluence.jetbrains.com/pages/viewpage.action?pageId=54334889#HowTo...-Tomcatsettings ?
Hello, Alina.
I have the same problem, can you give me a correct link for resolving this? Thanx!
Solved, but thanx )
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>
Hello Yoann,
Sorry for delay in replying. Is the issue still actual? Have you configured proxy server and Tomcat as noted in this section.
Hello,
Yes it is fixed.
Thanks.