extras/crashtest.nginx.conf
changeset 111 f827f3c50dcf
equal deleted inserted replaced
110:d024bf1f4eab 111:f827f3c50dcf
       
     1 server {
       
     2   server_name crashtest crashtest.*;
       
     3   listen [::]:80;
       
     4   #listen [::]:443 ssl;
       
     5 
       
     6   error_log /var/log/nginx/error-crashtest.log error;
       
     7   access_log /var/log/nginx/access-crashtest.log;
       
     8 
       
     9   root /usr/share/perl5/CrashTest/files/public/;
       
    10   try_files $uri @crashtest;
       
    11 
       
    12   expires 15d;
       
    13 
       
    14   location @crashtest {
       
    15     expires off;
       
    16     proxy_pass http://127.0.0.1:3000;
       
    17     proxy_http_version 1.1;
       
    18     proxy_read_timeout 120s;
       
    19     proxy_set_header Host $host;
       
    20     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       
    21     proxy_set_header X-Forwarded-HTTPS 0;
       
    22   }
       
    23 
       
    24 }
       
    25 
       
    26 # vim:ft=nginx: