location /poudriere { alias /usr/local/share/poudriere/html; location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|woff|css|js|html)$ { add_header Cache-Control "public"; expires 2d; } location /poudriere/data { alias /usr/local/poudriere/data/logs/bulk/; location ~* ^.+\.(log|txz|tbz|bz2|gz)$ { add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } location ~* ^.+\.(json)$ { add_header Cache-Control "public, must-revalidate, proxy-revalidate"; access_log off; log_not_found off; } location ~ /data/?.*/(logs|latest-per-pkg)/ { autoindex on; } break; } location /poudriere/repo { alias /usr/local/poudriere/data/packages; } }