96 lines
2.2 KiB
Nginx Configuration File
96 lines
2.2 KiB
Nginx Configuration File
worker_processes 3;
|
|
worker_cpu_affinity auto;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
# not compatible with ZFS
|
|
#sendfile on;
|
|
keepalive_timeout 65;
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
server_name pkg;
|
|
root /usr/local/share/poudriere/html;
|
|
|
|
location /_/ping/ {
|
|
access_log off;
|
|
return 200;
|
|
}
|
|
|
|
location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|woff|css|js|html)$ {
|
|
add_header Cache-Control "public";
|
|
expires 2d;
|
|
}
|
|
|
|
location /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 /repo {
|
|
autoindex on;
|
|
alias /usr/local/poudriere/data/packages;
|
|
}
|
|
|
|
location /140x64/default {
|
|
autoindex on;
|
|
alias /usr/local/poudriere/data/packages/140x64-default;
|
|
}
|
|
location /141x64/default {
|
|
autoindex on;
|
|
alias /usr/local/poudriere/data/packages/141x64-default;
|
|
}
|
|
location /142x64/default {
|
|
autoindex on;
|
|
alias /usr/local/poudriere/data/packages/142x64-default;
|
|
}
|
|
location /FreeBSD:14:amd64/default {
|
|
autoindex on;
|
|
alias /usr/local/poudriere/data/packages/141x64-default;
|
|
}
|
|
location /FreeBSD:14:amd64/Latest {
|
|
autoindex on;
|
|
alias /usr/local/poudriere/data/packages/141x64-default;
|
|
}
|
|
|
|
location /130x64/default {
|
|
autoindex on;
|
|
alias /usr/local/poudriere/data/packages/130x64-default;
|
|
}
|
|
location /FreeBSD:13:amd64/default {
|
|
autoindex on;
|
|
alias /usr/local/poudriere/data/packages/130x64-default;
|
|
}
|
|
location /FreeBSD:13:amd64/Latest {
|
|
autoindex on;
|
|
alias /usr/local/poudriere/data/packages/130x64-default;
|
|
}
|
|
location /pkg {
|
|
autoindex on;
|
|
alias /usr/local/poudriere/data/packages;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/local/www/nginx-dist;
|
|
}
|
|
}
|
|
}
|