I have sent NGINX reverse proxy to docker and everything works fine except for Export to Excel or PDF. It gives internal server error.
I did try adding /api to reverse proxy, however when ever i add the same configuration provided in installation doc, the docker instance redirect to setup.
https://ibb.co/w6pwCmc
nginx config
server {
listen 80;
server_name cattr.domain.com;
location / {
proxy_pass https://cattr.domain.com/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
access_log off;
}
Backend (API) configuration
location /api {
rewrite ^/api/(.+)$ /$1 break;
proxy_pass https://cattr.domain.com/;
try_files $uri $uri/ /api/index.php?$query_string;
}