Pulp location of CSS etc for API browser (and/or dependancies)
Ticket moved to GitHub: "pulp/pulpcore/1999":https://github.com/pulp/pulpcore/issues/1999
While testing the API web interface, I found that it looked "particularly bad" (see attached).
Digging through the web page code, I think this is down to the fact that there are numerous references to "/assets" as a URL,
/assets/rest_framework/css/bootstrap.min.css /assets/rest_framework/css/bootstrap-tweaks.css /assets/rest_framework/css/prettify.css /assets/rest_framework/css/default.css
As well ass /assets/rest_framework/js/jquery-3.5.1.min.js /assets/rest_framework/js/ajax-form.js /assets/rest_framework/js/csrf.js /assets/rest_framework/js/bootstrap.min.js /assets/rest_framework/js/prettify-min.js /assets/rest_framework/js/default.js
I've not used the pulp installer, and am using HAProxy as the reverse proxy, as such I've had to try and reverse engineer the HAProxy settings,
I can see two places where URL destinations appear to be set. https://github.com/pulp/pulp_installer/blob/a00dfd83c397c4b2074f79431a92c23abaac3b25/roles/pulp_webserver/templates/nginx.conf.j2 and https://github.com/pulp/pulp_installer/blob/a00dfd83c397c4b2074f79431a92c23abaac3b25/roles/pulp_webserver/templates/pulp-vhost.conf.j2
Neither of which appears to point to an /assets location, aside from the nginx config which has a catch-all of /
However even after setting that, the files are still not accessible.
So the second part of the question, is what supplies the files listed above.
FYI, I have djangorestframework 3.12.4 installed, which looks like it satisfies the file dependencies if nothing else.
Updated by daviddavis about 2 years ago
- Triaged changed from No to Yes
Updated by pulpbot over 1 year ago
- Description updated (diff)
- Status changed from NEW to CLOSED - DUPLICATE