server { listen 80; server_name repo.local; add_header X-Frame-Options "SAMEORIGIN"; add_header Referrer-Policy "no-referrer"; root /var/local-repo/; location / { autoindex on; allow all; sendfile on; sendfile_max_chunk 1m; autoindex_exact_size off; autoindex_format html; autoindex_localtime on; } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } }