Skip to content

Commit

Permalink
BAH-3528 | Add. Proxy Rules For uploaded-files (#14)
Browse files Browse the repository at this point in the history
* [Rahul] | BAH-3528 | Add. Proxy Rules For uploaded-files

* [Rahul] | BAH-3528 | Fix. PEP 668 pip failing install

PEP 668 is a warning against mixing apk provided packages and pip provided packages during installation
  • Loading branch information
rahu1ramesh authored Feb 6, 2024
1 parent e7f9097 commit 7ef488d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ RUN mkdir -p /var/log/client-side-logs/ &&\
chmod 777 /var/log/client-side-logs/client-side.log &&\
ln -s /usr/local/apache2/htdocs/client_side_logging /usr/lib/python3*/site-packages/

RUN pip install Flask pyyaml==6.0.1 mod_wsgi
RUN pip install Flask pyyaml==6.0.1 mod_wsgi --break-system-packages

# Rename and move mod_wsgi module to apache2 modules
RUN mv /usr/lib/python*/site-packages/mod_wsgi/server/mod_wsgi-*.so /usr/local/apache2/modules/mod_wsgi.so
4 changes: 4 additions & 0 deletions resources/bahmni-proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

Redirect permanent /home /bahmni/home/

#Uploaded Files
ProxyPass /uploaded-files http://patient-documents:80/uploaded-files
ProxyPassReverse /uploaded-files http://patient-documents:80/uploaded-files

#Patient Documents
ProxyPass /document_images http://patient-documents:80/document_images
ProxyPassReverse /document_images http://patient-documents:80/document_images
Expand Down

0 comments on commit 7ef488d

Please sign in to comment.