Skip to content

Commit

Permalink
BAH-3528 | Add. uploaded-files Sub Directory And Set Permissions (#14)
Browse files Browse the repository at this point in the history
* [Rahul] | BAH-3528 | Add. uploaded-files Sub Directory And Set Permissions

* [Rahul] | BAH-3528 | Add. Persistent Volume Claim For Uploaded Files
  • Loading branch information
rahu1ramesh committed Feb 6, 2024
1 parent 0d30ab6 commit 6b3d71b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions package/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ COPY njs.js /etc/nginx/conf.d
# Create Document Images Directory and modify access mode for other users
RUN mkdir -p /usr/share/nginx/html/document_images
RUN mkdir -p /usr/share/nginx/html/uploaded_results
RUN mkdir -p /usr/share/nginx/html/uploaded-files
4 changes: 4 additions & 0 deletions package/docker/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ server {
rewrite ^(.*) https://$host/openmrs/auth?requested_document=$uri permanent;
}

location /uploaded-files {
rewrite ^(.*) https://$host/openmrs/auth?requested_document=$uri permanent;
}

location = /openmrs/auth {
subrequest_output_buffer_size 200000;
client_body_buffer_size 200000;
Expand Down
7 changes: 6 additions & 1 deletion package/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,16 @@ spec:
name: openmrs-document-images
- mountPath: /usr/share/nginx/html/uploaded_results
name: bahmni-uploaded-results
- mountPath: /usr/share/nginx/html/uploaded-files
name: bahmni-uploaded-files
restartPolicy: Always
volumes:
- name: openmrs-document-images
persistentVolumeClaim:
claimName: {{ .Values.volumes.claimName }}
- name: bahmni-uploaded-results
persistentVolumeClaim:
claimName: bahmni-uploaded-results-pvc
claimName: bahmni-uploaded-results-pvc
- name: bahmni-uploaded-files
persistentVolumeClaim:
claimName: bahmni-uploaded-files-pvc

0 comments on commit 6b3d71b

Please sign in to comment.