-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
32 lines (28 loc) · 970 Bytes
/
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
server {
listen 80 default_server;
listen [::]:80 default_server;
# Health check endpoint
location /health {
access_log off;
add_header Content-Type text/plain;
return 200 'healthy\n';
}
# Metrics endpoint proxy for prometheus
location /metrics {
proxy_pass http://localhost:9100/metrics;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
# Main package repository
location / {
root /srv/http/manjaro;
autoindex on;
autoindex_exact_size off;
autoindex_format html;
autoindex_localtime on;
}
# Basic security headers
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
}