Files
ep-docker-gpg-keyserver/nginx.conf
T
2026-10-10 22:23:26 +03:00

39 lines
705 B
Nginx Configuration File

```nginx
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
server_tokens off;
autoindex off;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "DENY" always;
add_header Access-Control-Allow-Origin "*" always;
location = /healthz {
access_log off;
default_type text/plain;
return 200 "OK\n";
}
location /keys/ {
limit_except GET HEAD {
deny all;
}
types {
text/plain asc;
text/plain txt;
}
default_type application/octet-stream;
try_files $uri =404;
}
location / {
return 404;
}
}
```