github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/dashboard/frontend/nginx.conf (about)

     1  worker_processes 1;
     2  events { worker_connections 1024; }
     3  
     4  http {
     5  
     6      include       /etc/nginx/mime.types;
     7      default_type  application/octet-stream;
     8  
     9      client_header_timeout  3m;
    10      client_body_timeout    3m;
    11      send_timeout           3m;
    12  
    13      client_header_buffer_size    1k;
    14      large_client_header_buffers  4 4k;
    15  
    16      gzip on;
    17      gzip_min_length  1100;
    18      gzip_buffers     4 8k;
    19      gzip_types       text/plain application/javascript application/x-javascript text/javascript text/xml text/css;
    20  
    21      output_buffers   1 32k;
    22      postpone_output  1460;
    23  
    24      sendfile         on;
    25      tcp_nopush       on;
    26      tcp_nodelay      on;
    27  
    28      keepalive_timeout  75 20;
    29  
    30      server {
    31          listen        80;
    32          server_name   _;
    33   
    34          location / {
    35              root /www;
    36              try_files $uri /index.html;
    37          }      
    38  
    39          location /index.html {
    40              root /www;
    41              add_header Last-Modified $date_gmt;
    42              add_header Cache-Control 'no-store, no-cache';
    43              if_modified_since off;
    44              expires off;
    45              etag off;
    46          }  
    47      }
    48      
    49  }