-
Notifications
You must be signed in to change notification settings - Fork 3
/
nginx.conf
70 lines (67 loc) · 2.23 KB
/
nginx.conf
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
worker_processes 1;
events {
worker_connections 1024;
}
http {
gzip on;
gzip_http_version 1.0;
gzip_comp_level 6;
gzip_proxied any;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/gif image/jpeg image/png application/json image/svg+xml;
types {
text/plain log;
}
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name idaho.arrakis.com.br;
ssl_certificate /usr/local/etc/nginx/certs/idaho.arrakis.com.br/fullchain;
ssl_certificate_key /usr/local/etc/nginx/certs/idaho.arrakis.com.br/key;
location / {
root /usr/local/share/poudriere/html;
index index.html index.htm;
}
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 /packages {
alias /usr/local/poudriere/data/packages;
autoindex on;
break;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
}
server {
listen 80;
listen [::]:80;
server_name idaho.arrakis.com.br;
location /.well-known/acme-challenge/ {
root /usr/local/www/idaho.arrakis.com.br;
try_files $uri =404;
}
location / {
return 301 https://$server_name$request_uri;
}
}
}