Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site broken when ckan.root_path is set #127

Open
joaotonelli opened this issue Apr 12, 2024 · 3 comments
Open

Site broken when ckan.root_path is set #127

joaotonelli opened this issue Apr 12, 2024 · 3 comments
Assignees

Comments

@joaotonelli
Copy link

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:

  • Just set it in the .env file:
    CKAN__ROOT_PATH=/myroot

Here follows some printscreens:

image

image

@joaotonelli joaotonelli changed the title Site broken when ckan.root_path set Site broken when ckan.root_path is set Apr 12, 2024
@Chealer
Copy link

Chealer commented Apr 12, 2024

Hum, is that CKAN__ROOT_PATH variable documented somewhere?

@joaotonelli
Copy link
Author

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

@joaotonelli
Copy link
Author

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.

@kowh-ai kowh-ai self-assigned this Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants