37 lines
920 B
Nginx Configuration File
37 lines
920 B
Nginx Configuration File
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;
|
|
|
|
location = /healthz {
|
|
access_log off;
|
|
default_type text/plain;
|
|
return 200 "OK\n";
|
|
}
|
|
|
|
# Direct-method Web Key Directory (WKD).
|
|
# Files live under ./wkd, mounted at /.well-known/openpgpkey/.
|
|
location ^~ /.well-known/openpgpkey/ {
|
|
limit_except GET HEAD { deny all; }
|
|
default_type application/octet-stream;
|
|
add_header Access-Control-Allow-Origin "*" always;
|
|
try_files $uri =404;
|
|
}
|
|
|
|
# Optional legacy/static download URLs.
|
|
location ^~ /keys/ {
|
|
limit_except GET HEAD { deny all; }
|
|
default_type application/octet-stream;
|
|
try_files $uri =404;
|
|
}
|
|
|
|
location / {
|
|
return 404;
|
|
}
|
|
}
|