ara icon indicating copy to clipboard operation
ara copied to clipboard

Option to change the application root path

Open mathishaloy opened this issue 3 years ago • 4 comments

Option to change the application root path

In the previous version (0.x) it was possible to change the application root path (/) to other path like (/ara) This option is not present in the latest documentation, is there a way today to change the application root path ?

Thanks !

mathishaloy avatar Sep 19 '22 11:09 mathishaloy

Hi @mathishaloy and thanks for the issue.

We recommend setting the API server at the root of a subdomain because it's simpler that way.

If you really want to put it under a subdirectory, there's a workaround suggested in this other issue: https://github.com/ansible-community/ara/issues/121

dmsimard avatar Sep 19 '22 18:09 dmsimard

Hi @dmsimard, thanks for your quick response. Unfortunately I'm using the docker image, do you have also a workaround for this type of installation ?

mathishaloy avatar Sep 20 '22 08:09 mathishaloy

The workaround is the same: put an nginx in front of the container which takes care of modifying URLs to be under a subdirectory.

dmsimard avatar Sep 20 '22 13:09 dmsimard

I think this is addressed by https://ara.readthedocs.io/en/latest/api-configuration.html#ara-base-dir from https://github.com/ansible-community/ara/pull/452 right?

rptaylor avatar Feb 03 '23 00:02 rptaylor