How to change the Installation url in spring boot connect app

Hi team,

I leverage ngrok to expose my localhost on port 8080 and obtain an HTTPS link such as https://dc6e-58-246-80-234.ngrok-free.app. When installing the app, all that’s required is to simply copy and paste the aforementioned link into the ‘upload app blank’. Consequently, it returns the content of the atlassian-connect.json file when accessed via the provided link. Is it possible to modify the default URI to something like https://dc6e-58-246-80-234.ngrok-free.app/api/install?

Best regards,
Roger

@RogerFan to your specific question, no, it is not possible to modify the resource path of /atlassian-connect.json.

The library provides a configuration property atlassian.connect.redirect-root-to-descriptor, which disables the redirection from / to /atlassian-connect.json.

If you really need to expose the descriptor on a different URL, you could:

  • expose it as a static resource
  • expose it using a copy of the com.atlassian.connect.spring.internal.descriptor package.
  • expose it using a custom controller with a dependency on com.atlassian.connect.spring.internal.descriptor.AddonDescriptorLoader in atlassian-connect-spring-boot-core (discouraged).
1 Like

Hi @epehrson

Thanks for the detailed replay. I will give it a try.

BR,
Roger.