39 lines
705 B
Nginx Configuration File
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;
|
|
}
|
|
}
|
|
``` |