home · contact · privacy
Improve web server setup.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 6 Dec 2018 01:40:23 +0000 (02:40 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 6 Dec 2018 01:40:23 +0000 (02:40 +0100)
all_new_2018/linkable_etc_files/web/etc/gitweb.conf
all_new_2018/linkable_etc_files/web/etc/nginx/nginx.conf
all_new_2018/setup_web.sh [changed mode: 0644->0755]

index c89282b562777816dc5530abea35f96d17b56b27..71ce3c5592b6e33ae5efe06c21cd6a85c9c2ed1b 100644 (file)
@@ -1,5 +1,5 @@
 # path to git projects (<project>.git)
-$projectroot = "/var/www/public_repos";
+$projectroot = "/var/public_repos";
 
 # directory to use for temp files
 # explicitely set by Debian so it's probably a good choice
index ec3e5f99443d0c83fd653ca6e1a68a4771299f2c..5d95d2e4aefe478b79fd0b9c0d2d623f4d5c35ec 100644 (file)
@@ -11,7 +11,7 @@ http {
     # define content-type headers
     types {
         text/html html htm shtml;
-        text/css  css;
+        text/css css;
         text/xml xml;
         text/plain txt sh rst md;
         application/xhtml+xml xhtml;
@@ -46,7 +46,7 @@ http {
             include fastcgi_params;
             fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
             fastcgi_param GIT_HTTP_EXPORT_ALL "";
-            fastcgi_param GIT_PROJECT_ROOT /var/www/public_repos;
+            fastcgi_param GIT_PROJECT_ROOT /var/public_repos;
             fastcgi_param PATH_INFO $1;
             fastcgi_pass unix:/var/run/fcgiwrap.socket;
         }
@@ -59,8 +59,8 @@ http {
         # gitweb; this needs packages fcgiwrap and gitweb
         location /repos/ {
             include fastcgi_params;
-            fastcgi_param SCRIPT_FILENAME  /usr/share/gitweb/gitweb.cgi;
-            fastcgi_param GITWEB_CONFIG  /etc/gitweb.conf;
+            fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
+            fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
             fastcgi_pass unix:/var/run/fcgiwrap.socket;
         }
     }
old mode 100644 (file)
new mode 100755 (executable)
index 55edd39..8cd1401
@@ -5,4 +5,7 @@ set -e
 sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/nginx/nginx.conf
 sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/gitweb.conf
 apt -y -o Dpkg::Options::=--force-confold install nginx gitweb fcgiwrap
+cd /var/
+rm -rf www
+git clone plom@core.plomlompom.com:repos/website www
 iptables-restore /etc/iptables/rules.v4