Nginx 的文件上傳時支持進度顯示的擴展模塊

jopen 10年前發布 | 22K 次閱讀 Nginx Web服務器

nginx-upload-progress-module 是 Nginx 的文件上傳時支持進度顯示的擴展模塊。

Configuration Example:
+++++++++++++++++++++

http {

    # reserve 1MB under the name 'proxied' to track uploads
    upload_progress proxied 1m;

  server {
        listen       127.0.0.1 default;
        server_name  _ *;

        root /path/to/root;

        location / {
            # proxy to upstream server
            proxy_pass http://127.0.0.1;
            proxy_redirect default;

            # track uploads in the 'proxied' zone
            # remember connections for 30s after they finished
            track_uploads proxied 30s;
        }

        location ^~ /progress {
            # report uploads tracked in the 'proxied' zone
            report_uploads proxied;
        }
}
    

項目主頁:http://www.baiduhome.net/lib/view/home/1387805578656

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!