server { listen 1080; root /www/file; autoindex on; autoindex_exact_size off; autoindex_localtime on; charset utf-8; client_max_body_size 8192m; location ~ .*conf$|.*sh$|.*py$|.*yml$|.*yaml$|Dockerfile { charset utf-8; add_header Content-Type "text/plain;charset=utf-8"; } }