Sunday drafting "Sexual Dimorphism in the Sequences" 1
[Ultimately_Untrue_Thought.git] / provisioning / nginx_siteconf
1 map $sent_http_content_type $expires {
2     default                    off;
3     text/html                  epoch;
4 }
5
6 server {
7         listen 80 default_server;
8         listen [::]:80 default_server;
9
10         root /var/www/html;
11
12         index index.html index.htm index.nginx-debian.html;
13
14         server_name _;
15
16         expires $expires;
17
18         location / {
19             # First attempt to serve request as file, then
20             # as directory, then fall back to displaying a 404.
21             try_files $uri $uri/ =404;
22         }
23
24         location /papers {
25             root /var/www;
26             autoindex on;
27         }
28
29         location /source {
30             root /usr/share/gitweb/;
31             include fastcgi_params;
32             gzip off;
33             fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
34             fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
35             fastcgi_pass  unix:/var/run/fcgiwrap.socket;
36         }
37
38         location /static { # gitweb static files
39             root /usr/share/gitweb;
40             try_files $uri $uri/ =404;
41         }
42
43         location /isso {
44             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
45             proxy_set_header X-Script-Name /isso;
46             proxy_set_header Host $host;
47             proxy_set_header X-Forwarded-Proto $scheme;
48             proxy_pass http://localhost:8080;
49         }
50
51 }