"I Tell Myself": shoveling text between files, joins to the main thread
[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 }