All checks were successful
CI — Website / Website — typecheck, build (pull_request) Successful in 57s
36 lines
585 B
Nginx Configuration File
36 lines
585 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 {
|
|
try_files /robots.txt =404;
|
|
}
|
|
|
|
location = /sitemap.xml {
|
|
default_type application/xml;
|
|
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;
|
|
}
|
|
}
|