Skip to content

Commit 2ced411

Browse files
committed
fix: add nginx security headers (server_tokens off, Content-Type on /health)
1 parent 3b95ecf commit 2ced411

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ server {
44
root /usr/share/nginx/html;
55
index index.html;
66

7+
server_tokens off;
8+
79
location /health {
810
access_log off;
11+
add_header Content-Type text/plain;
912
return 200 "ok";
1013
}
1114

0 commit comments

Comments
 (0)