NEWAGE-Labs / nal.lims

GNU General Public License v2.0
1 stars 0 forks source link

Allow attachments through NGINX #18

Closed faytrow closed 2 years ago

faytrow commented 3 years ago

.PNG attachments fail to render in senaite.impress reports when supplied through NGINX.

Determine why these attachments fail, correct the issue, and implement an NGINX reverse proxy server to allow DNS redirection for LIMS.

faytrow commented 3 years ago

Potential solution is to move the client_max_body_size 10M; inside of the location \ section.

faytrow commented 3 years ago

Solved by commenting out

# add_header Content-Security-Policy-Report-Only "default-src 'self'; img-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'";
faytrow commented 3 years ago

JPEG fails through NGINX even though initial testing proved successful. Appears to be related to not being able to access images via http:// through NGINX