vitess.io/vitess@v0.16.2/docker/k8s/vtadmin/default.conf (about)

     1  server {
     2      gzip on;
     3      gzip_min_length 256;
     4      gzip_http_version 1.1;
     5      gzip_types
     6          application/atom+xml 
     7          application/geo+json 
     8          application/javascript 
     9          application/x-javascript 
    10          application/json 
    11          application/ld+json 
    12          application/manifest+json 
    13          application/rdf+xml 
    14          application/rss+xml 
    15          application/xhtml+xml 
    16          application/xml 
    17          font/eot 
    18          font/otf 
    19          font/ttf 
    20          image/svg+xml 
    21          text/css 
    22          text/javascript 
    23          text/plain 
    24          text/xml;
    25      listen ${VTADMIN_WEB_PORT};
    26      root /var/www;
    27      location ~ config\.js {
    28          expires off;
    29          add_header Cache-Control no-store;
    30      }
    31      location ~* \.(css|js)$ {
    32          expires max;
    33          add_header Cache-Control public;
    34      }
    35      location / {
    36          client_max_body_size 50M;
    37          try_files $uri /index.html;  
    38      }
    39  }