CKAN Frontend doesn't load urls correctly with reverse proxy
45 views
Skip to first unread message
stephenmarkh
unread,
Jan 27, 2022, 4:03:57 PM1/27/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CKAN Development Discussions
Good Afternoon all,
I have an Nginx reverse proxy serving CKAN from a URL such as www.example.com/ckan. I can access the link but none of the backend website files are loading in the browser and I get a very broken display. Here are some details of my environment:
nginx/1.20.0
ckan/2.9.5 running in docker container exposed port 5000
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Matthew Fullerton, CKAN Development Discussions
Hi Matthew,
Thanks for the reply! I have tried both with and without the slash on my Nginx config. Also, that screenshot is the same issue I get when I access CKAN without going through the proxy. If I curl <$CKAN_HOST_IP>:5000 I still receive 404's for all the .js and .css.files after making the ckan.root_path configurations. I tailed the logs of the ckan container and saw errors to where it looked like maybe the requests were trying to locate the webasset files that are located @ /var/lib/ckan/webassets at /ckan on the container. So I exec'd into the container and created a symbolic link from / ckan -> /var/lib/ckan, which still didn't fix my issue.