make sure to include Twitter links in recap
[Ultimately_Untrue_Thought.git] / provisioning / nginx_siteconf
index 2f2cd07..b18ce5b 100644 (file)
@@ -1,3 +1,8 @@
+map $sent_http_content_type $expires {
+    default                    off;
+    text/html                  epoch;
+}
+
 server {
         listen 80 default_server;
         listen [::]:80 default_server;
@@ -8,6 +13,8 @@ server {
 
         server_name _;
 
+        expires $expires;
+
         location / {
             # First attempt to serve request as file, then
             # as directory, then fall back to displaying a 404.
@@ -30,7 +37,15 @@ server {
 
         location /static { # gitweb static files
             root /usr/share/gitweb;
-            try_files $uri $uri/ =404;   
+            try_files $uri $uri/ =404;
+        }
+
+        location /isso {
+            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+            proxy_set_header X-Script-Name /isso;
+            proxy_set_header Host $host;
+            proxy_set_header X-Forwarded-Proto $scheme;
+            proxy_pass http://localhost:8080;
         }
 
 }