aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/21_poudriere_repo/templates/usr_local_etc_nginx_nginx.conf
blob: 5599ef982e9fcd8e00b4adf51208233251e0a88a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
worker_processes 1;

events {
    worker_connections 128;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile      on;

    server {
        listen 80;
        server_name _;

        root /mnt/poudriere-html;
        index index.html;

        location /data {
            alias /mnt/poudriere-logs/bulk;
            autoindex on;
        }

        location /packages {
            alias /mnt/poudriere-packages/poudriere_build-quarterly/.latest;
            autoindex on;
        }

        location / {
            try_files $uri $uri/ =404;
        }
    }
}