summaryrefslogtreecommitdiff
path: root/pinyconfigs/etc
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-11-07 00:09:53 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-11-07 00:09:53 -0700
commit82f9c9f1fa19c59e296570412656c66607d46f48 (patch)
tree37ddd246883521548513faebd94688b0db70e24c /pinyconfigs/etc
parent94fc7a992c7f3e163b491ce8b248f3c1b4ca2702 (diff)
downloadpiny-code-82f9c9f1fa19c59e296570412656c66607d46f48.tar.gz
piny-code-82f9c9f1fa19c59e296570412656c66607d46f48.zip
pinyconfigs
Adding a package that does all the config file magic to get a piny instance running. Signed-off-by: Julian Blake Kongslie <jblake@omgwallhack.org>
Diffstat (limited to 'pinyconfigs/etc')
-rw-r--r--pinyconfigs/etc/apache2/envvars3
-rw-r--r--pinyconfigs/etc/apache2/sites-available/piny63
-rw-r--r--pinyconfigs/etc/cgitrc90
-rwxr-xr-xpinyconfigs/etc/cron.weekly/piny8
-rw-r--r--pinyconfigs/etc/piny-default.conf0
-rw-r--r--pinyconfigs/etc/piny-override.conf0
-rw-r--r--pinyconfigs/etc/sudoers.d/pinyadmin1
-rwxr-xr-xpinyconfigs/etc/sv/git-daemon/run4
8 files changed, 169 insertions, 0 deletions
diff --git a/pinyconfigs/etc/apache2/envvars b/pinyconfigs/etc/apache2/envvars
new file mode 100644
index 0000000..c129349
--- /dev/null
+++ b/pinyconfigs/etc/apache2/envvars
@@ -0,0 +1,3 @@
+. /etc/apache2/envvars.default
+
+export APACHE_RUN_GROUP=shadow
diff --git a/pinyconfigs/etc/apache2/sites-available/piny b/pinyconfigs/etc/apache2/sites-available/piny
new file mode 100644
index 0000000..05808f4
--- /dev/null
+++ b/pinyconfigs/etc/apache2/sites-available/piny
@@ -0,0 +1,63 @@
+<VirtualHost *:80>
+ ServerName piny.be
+
+ DocumentRoot /srv/www/piny.be
+
+ <Directory />
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride None
+ </Directory>
+
+ RedirectMatch 301 ^/$ http://piny.be/piny-web/
+</VirtualHost>
+
+<VirtualHost *:80>
+ ServerName www.piny.be
+ RedirectMatch 301 (.*) http://piny.be$1
+</VirtualHost>
+
+<VirtualHost *:443>
+ ServerName piny.be
+ DocumentRoot /srv/www/piny.be
+
+ <Directory />
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride None
+ </Directory>
+
+ RedirectMatch 301 ^/$ http://piny.be/piny-web/
+
+ SSLEngine On
+ SSLCertificateFile /etc/ssl/private/secure.piny.be.pem
+ SSLCACertificateFile /etc/ssl/private/GandiStandardSSLCA.pem
+</VirtualHost>
+
+<VirtualHost *:80>
+ ServerName secure.piny.be
+ RedirectMatch 301 (.*) https://secure.piny.be$1
+</VirtualHost>
+
+<VirtualHost *:443>
+ ServerName secure.piny.be
+ DocumentRoot /srv/www/secure.piny.be
+
+ <Directory "/srv/www/secure.piny.be">
+ SSLRequireSSL
+ SetHandler cgi-script
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ </Directory>
+
+ ScriptAlias /cgit /usr/lib/cgi-bin/cgit.cgi
+
+ Include /etc/apache2/piny-enabled
+
+ SSLEngine On
+ SSLCertificateFile /etc/ssl/private/secure.piny.be.pem
+ SSLCACertificateFile /etc/ssl/private/GandiStandardSSLCA.pem
+</VirtualHost>
+
+<VirtualHost *:80>
+ ServerName piny.svcs.cs.pdx.edu
+ RedirectMatch 301 (.*) http://piny.be$1
+</VirtualHost>
diff --git a/pinyconfigs/etc/cgitrc b/pinyconfigs/etc/cgitrc
new file mode 100644
index 0000000..a557df0
--- /dev/null
+++ b/pinyconfigs/etc/cgitrc
@@ -0,0 +1,90 @@
+# Enable caching of up to 1000 output entriess
+cache-size=0
+
+# Specify some default clone prefixes
+clone-prefix=git://piny.be git+ssh://piny.be/srv/git
+
+# Specify the css url
+css=http://piny.be/piny-shared/cgit/cgit.css
+
+# Show extra links for each repository on the index page
+enable-index-links=1
+
+# Show number of affected files per commit on the log pages
+enable-log-filecount=1
+
+# Show number of added/removed lines per commit on the log pages
+enable-log-linecount=1
+
+# Use a custom logo
+logo=http://piny.be/piny-shared/cgit/cgit.png
+
+# Set the title and heading of the repository index page
+root-title=Piny git repositories
+
+# Set a subheading for the repository index page
+root-desc=For all your informational needs.
+
+# Include some more info about foobar.com on the index page
+#root-readme=/var/www/htdocs/about.html
+
+# Allow download of tar.gz, tar.bz and zip-files
+snapshots=tar.gz zip
+
+scan-path=/srv/git
+
+enable-gitweb-owner=1
+
+##
+## List of repositories.
+## PS: Any repositories listed when repo.group is unset will not be
+## displayed under a group heading
+## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos')
+## and included like this:
+## include=/etc/cgitrepos
+##
+
+
+#repo.url=piny-web
+#repo.path=/srv/git/piny-web.git
+#repo.desc=piny-web
+#repo.owner=jrayhawk+piny.be@omgwallhack.org
+#repo.readme=info/web/about.html
+
+
+#repo.url=piny-shared
+#repo.path=/srv/git/piny-shared.git
+#repo.desc=piny-shared
+#repo.owner=jrayhawk+piny.be@omgwallhack.org
+#repo.readme=info/web/about.html
+
+
+# The next repositories will be displayed under the 'extras' heading
+
+#repo.url=baz
+#repo.path=/pub/git/baz.git
+#repo.desc=a set of extensions for bar users
+
+#repo.url=wiz
+#repo.path=/pub/git/wiz.git
+#repo.desc=the wizard of foo
+
+
+# Add some mirrored repositories
+#repo.group=mirrors
+
+
+#repo.url=git
+#repo.path=/pub/git/git.git
+#repo.desc=the dscm
+
+
+#repo.url=linux
+#repo.path=/pub/git/linux.git
+#repo.desc=the kernel
+
+# Disable adhoc downloads of this repo
+repo.snapshots=0
+
+# Disable line-counts for this repo
+repo.enable-log-linecount=0
diff --git a/pinyconfigs/etc/cron.weekly/piny b/pinyconfigs/etc/cron.weekly/piny
new file mode 100755
index 0000000..3719879
--- /dev/null
+++ b/pinyconfigs/etc/cron.weekly/piny
@@ -0,0 +1,8 @@
+#/bin/sh
+
+export GIT_DIR
+
+for GIT_DIR in `find /srv/git/ -mindepth 1 -type d -name '*.git' -print -prune`; do
+ git gc --aggressive --auto --quiet
+ git pack-refs --all
+done
diff --git a/pinyconfigs/etc/piny-default.conf b/pinyconfigs/etc/piny-default.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/pinyconfigs/etc/piny-default.conf
diff --git a/pinyconfigs/etc/piny-override.conf b/pinyconfigs/etc/piny-override.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/pinyconfigs/etc/piny-override.conf
diff --git a/pinyconfigs/etc/sudoers.d/pinyadmin b/pinyconfigs/etc/sudoers.d/pinyadmin
new file mode 100644
index 0000000..c6702b7
--- /dev/null
+++ b/pinyconfigs/etc/sudoers.d/pinyadmin
@@ -0,0 +1 @@
+%users ALL=(root) NOPASSWD: /usr/sbin/addaccess, /usr/sbin/newrepo, /usr/sbin/newuser, /usr/sbin/pinyconfig, /usr/sbin/rmaccess, /usr/sbin/rmrepo
diff --git a/pinyconfigs/etc/sv/git-daemon/run b/pinyconfigs/etc/sv/git-daemon/run
new file mode 100755
index 0000000..307377e
--- /dev/null
+++ b/pinyconfigs/etc/sv/git-daemon/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+echo 'git daemon starting.'
+exec chpst -ugitdaemon git daemon --verbose --base-path=/srv/git