github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/site/site_check.conf (about)

     1  server {
     2      listen       $PORT;
     3      server_name  localhost;
     4      add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
     5  
     6      location ~* \.md$ {
     7          root   /usr/share/nginx/html;
     8          try_files $uri =404;
     9      }
    10  
    11      location ~* ^[\/\w\.-]+[^\.]?.?.?$  {
    12          root   /usr/share/nginx/html;
    13          index  index.html index.htm;
    14          try_files $uri /index.html;
    15      }
    16  
    17      location ~* sidebar.md$ {
    18          root   /usr/share/nginx/html;
    19          index sidebar.md;
    20      }
    21  }