All checks were successful
CI — Website / Website — typecheck, build (pull_request) Successful in 1m2s
Give Google unique snippets and FAQ rich results, and keep robots/sitemap from being cached as HTML. Co-authored-by: Cursor <cursoragent@cursor.com>
38 lines
689 B
Nginx Configuration File
38 lines
689 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location = /healthz {
|
|
access_log off;
|
|
add_header Content-Type text/plain;
|
|
return 200 'ok';
|
|
}
|
|
|
|
location = /robots.txt {
|
|
add_header Cache-Control "public, max-age=300";
|
|
try_files /robots.txt =404;
|
|
}
|
|
|
|
location = /sitemap.xml {
|
|
default_type application/xml;
|
|
add_header Cache-Control "public, max-age=300";
|
|
try_files /sitemap.xml =404;
|
|
}
|
|
|
|
location ~ ^/(docs|contribute|community)/?$ {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
error_page 404 =404 /404.html;
|
|
|
|
location = /404.html {
|
|
internal;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|