Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to change the REST API URI

qiming December 24, 2017

We have an instance running Bamboo 6.3 in port 8085.

And a reverse proxy engine proxy the my.domain.com to localhost:8085.

When we try to link Applications with Jira, it runs failed.

Also, when we try to install add-ons, it runs failed too.

The root cause is base URI for automation URL is locahost:8085 instead of my.domain.com .

 

If we try to request the rest resources, the all in localhost.

May I know that there is any way to change the Host for these?

PS: It works before we upgrade to 6.3 from 5.x.

 

 <resources expand="resources"><link href="http://localhost:8085/rest/api/latest/" rel="self"/><resources start-index="0" max-result="12" size="12"><resource name="info"><link href="http://localhost:8085/rest/api/latest/info" rel="self"/></resource><resource name="project"><link href="http://localhost:8085/rest/api/latest/project" rel="self"/></resource><resource name="plan"><link href="http://localhost:8085/rest/api/latest/plan" rel="self"/></resource><resource name="result"><link href="http://localhost:8085/rest/api/latest/result" rel="self"/></resource><resource name="chart"><link href="http://localhost:8085/rest/api/latest/chart" rel="self"/></resource><resource name="queue"><link href="http://localhost:8085/rest/api/latest/queue" rel="self"/></resource><resource name="export"><link href="http://localhost:8085/rest/api/latest/export" rel="self"/></resource><resource name="clone"><link href="http://localhost:8085/rest/api/latest/clone" rel="self"/></resource><resource name="dependency"><link href="http://localhost:8085/rest/api/latest/dependency" rel="self"/></resource><resource name="elasticConfiguration"><link href="http://localhost:8085/rest/api/latest/elasticConfiguration" rel="self"/></resource><resource name="reindex"><link href="http://localhost:8085/rest/api/latest/reindex" rel="self"/></resource><resource name="currentUser"><link href="http://localhost:8085/rest/api/latest/currentUser" rel="self"/></resource></resources></resources>

1 answer

0 votes
Lars Olav Velle
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2017

You are not looking for how to change the REST API URI. Wanting a specific solution often gives the wrong answer.

Instead a heading like "Cannot install add-ons" or similar would make people more eager to help you out.

 

I think the root cause here is that you have not configured bamboo to be aware that it is running behind a reverse proxy:

https://confluence.atlassian.com/bamkb/running-bamboo-behind-apache-httpd-proxy-171967281.html

 

-Lars

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events