ckan / ckan-docker

Scripts and images to run CKAN using Docker Compose
95 stars 178 forks source link

Site broken when ckan.root_path is set #127

Open joaotonelli opened 5 months ago

joaotonelli commented 5 months ago

Hi,

I need to set the ckan.root_path in the ckan.ini for a project that I work on. When I do so, the site breaks. It seems to be something related to webassets and template locations.

Repro steps:

Here follows some printscreens:

image

image

Chealer commented 5 months ago

Hum, is that CKAN__ROOT_PATH variable documented somewhere?

joaotonelli commented 5 months ago

Absolutely. Here follows the CKAN official doc page: https://docs.ckan.org/en/2.10/maintaining/configuration.html#ckan-root-path

joaotonelli commented 5 months ago

Hi,

I have finally managed to fix this problem. Actually, I had to configure the nginx container to redirect the requests accordingly (using the /myroot/ prefix).

I don’t know whether it is the best solution, but it seems to be working fine now.