Running asreview docker contain behind reverse (nginx) proxy on subpath #1667
Unanswered
eriknl1982
asked this question in
Q&A
Replies: 1 comment
-
Hey Erik, Let me start by saying that your question is way out of my comfort zone. I have setup ASReview on several servers now with Docker but never have attempted to do it like that. I have used subdomains and never ran into trouble. Maybe you are really set on running ASReview via a sub-path, but if not, have you tried it with a subdomain like asreview.mydomain.com?? Cspr |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am attempting to deploy the ASReview Docker container in a environment and need to access it via a sub-path on my domain, specifically https://mydomain.com/asreview. To achieve this, I've set up a reverse proxy using Nginx with the following configuration:
This setup initially seems to work, as the ASReview application's landing page loads correctly. However, I encounter issues with the static files (CSS, JS, etc.). The application requests these files from the root path (https://mydomain.com/static/...) instead of the intended sub-path (https://mydomain.com/asreview/static/...). This results in broken styles and scripts because those resources do not exist at the root path.
Examples of the incorrect URLs being requested:
https://mydomain.com/static/css/main.9e747be3.css
https://mydomain.com/static/js/main.7e363081.js
I'm looking for a way to adjust either the Nginx configuration or the ASReview application setup so that it correctly references static files when accessed through a sub-path. Has anyone managed to successfully deploy ASReview in a similar setup or encountered and resolved this issue?
Beta Was this translation helpful? Give feedback.
All reactions