From ac628dbcfa812fa5cbf66070fce45d8ce65f9803 Mon Sep 17 00:00:00 2001
From: "M. Taylor Saotome-Westlake"
Date: Wed, 22 Nov 2017 16:33:10 -0800
Subject: [PATCH] now with Gitweb! link it in footer; check in copy of Nginx
conf
---
provisioning/nginx_siteconf | 36 ++++++++++++++++++++++++++++++++++++
theme/templates/base.html | 2 +-
2 files changed, 37 insertions(+), 1 deletion(-)
create mode 100644 provisioning/nginx_siteconf
diff --git a/provisioning/nginx_siteconf b/provisioning/nginx_siteconf
new file mode 100644
index 0000000..2f2cd07
--- /dev/null
+++ b/provisioning/nginx_siteconf
@@ -0,0 +1,36 @@
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+
+ root /var/www/html;
+
+ index index.html index.htm index.nginx-debian.html;
+
+ server_name _;
+
+ location / {
+ # First attempt to serve request as file, then
+ # as directory, then fall back to displaying a 404.
+ try_files $uri $uri/ =404;
+ }
+
+ location /papers {
+ root /var/www;
+ autoindex on;
+ }
+
+ location /source {
+ root /usr/share/gitweb/;
+ include fastcgi_params;
+ gzip off;
+ fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
+ fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
+ fastcgi_pass unix:/var/run/fcgiwrap.socket;
+ }
+
+ location /static { # gitweb static files
+ root /usr/share/gitweb;
+ try_files $uri $uri/ =404;
+ }
+
+}
diff --git a/theme/templates/base.html b/theme/templates/base.html
index 20f16e3..11b61f3 100644
--- a/theme/templates/base.html
+++ b/theme/templates/base.html
@@ -105,7 +105,7 @@
©2016â2017 {{ AUTHOR }} ⢠This work is licensed under a Creative Commons Attribution 4.0 International License.
- Proudly powered by Pelican. Theme modified from pelican-simplegrey.
+ Proudly powered by Pelican. Theme modified from pelican-simplegrey. Site source.
--
2.17.1