location ~ ^/webapi/recording/?(.*) { include "shared-headers.conf"; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_hide_header Content-Disposition; proxy_hide_header Content-Type; add_header Content-Disposition 'inline'; add_header Content-Type 'application/octet-stream'; add_header Accept-Ranges 'bytes'; proxy_pass http://127.0.0.1:8081/webapi/recording/$1$is_args$args; proxy_buffering on; proxy_read_timeout 300; proxy_connect_timeout 300; proxy_send_timeout 300; } location ~ ^/webapi/?(.*) { include "shared-headers.conf"; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_hide_header Content-Disposition; add_header Content-Disposition 'inline'; proxy_pass http://127.0.0.1:8081/webapi/$1$is_args$args; proxy_buffering off; proxy_read_timeout 300; proxy_connect_timeout 300; proxy_send_timeout 300; }
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article