summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-11-09 16:47:46 +0000
committerBaserock Gerrit <gerrit@baserock.org>2015-11-19 12:01:46 +0000
commite2250e8bfe649d3372f7782719f1869b61d2077b (patch)
tree6192a430d4efad7aba797823e0eb4fedb23e9c42 /etc
parent6ffbc273fd17d7529b813a85374ba5cbba5f5072 (diff)
downloadtrove-setup-e2250e8bfe649d3372f7782719f1869b61d2077b.tar.gz
lighttpd: Add support for installing SSL certs
Change-Id: I33c74dc19e5835c65740f483aae89a1e8e415f0c
Diffstat (limited to 'etc')
-rw-r--r--etc/lighttpd/git-httpd.conf71
1 files changed, 0 insertions, 71 deletions
diff --git a/etc/lighttpd/git-httpd.conf b/etc/lighttpd/git-httpd.conf
deleted file mode 100644
index dea86de..0000000
--- a/etc/lighttpd/git-httpd.conf
+++ /dev/null
@@ -1,71 +0,0 @@
-server.document-root = "/var/www/htdocs"
-
-server.port = 80
-
-server.username = "git"
-server.groupname = "git"
-
-server.modules = (
- "mod_access",
- "mod_alias",
- "mod_compress",
- "mod_redirect",
- "mod_cgi",
- "mod_auth",
- "mod_setenv",
-)
-
-$SERVER["socket"] == ":443" {
- ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/certs/lighttpd.pem"
-}
-
-index-file.names = ("index.html")
-
-cgi.assign = ("gitano-command.cgi" => "/usr/bin/lua5.1",
- "gitano-smart-http.cgi" => "/usr/bin/lua5.1",
- "cgit.cgi" => ""
-)
-cgi.execute-x-only = "enable"
-
-mimetype.assign = (
- ".html" => "text/html",
- ".txt" => "text/plain",
- ".jpg" => "image/jpeg",
- ".png" => "image/png",
- ".css" => "text/css"
-)
-
-$HTTP["url"] =~ "^/releases(/|$)" {
- server.dir-listing = "enable"
-}
-
-$HTTP["url"] =~ ".*/gitano-command.cgi$" {
- setenv.add-environment = (
- "HOME" => "/home/git",
- "GITANO_ROOT" => "/home/git/repos"
- )
-}
-
-$HTTP["url"] =~ "^/git/.*$" {
- alias.url += ( "/git" => "/var/www/htdocs/gitano-smart-http.cgi" )
-
- cgi.assign = ("" => "")
- setenv.add-environment = (
- "GIT_HTTP_EXPORT_ALL" => "",
- "GIT_PROJECT_ROOT" => "/home/git/repos",
- "HOME" => "/home/git",
- "GITANO_ROOT" => "/home/git/repos"
- )
-}
-
-$HTTP["scheme"] == "https" {
- include "git-auth.conf"
-
- $HTTP["querystring"] =~ "service=git-receive-pack" {
- include "git-auth.conf"
- }
-
- $HTTP["url"] =~ "^/git/.*/git-receive-pack$" {
- include "git-auth.conf"
- }
-}