]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Added example Lighttpd configuration for Baculum and sample web server auth...
authorMarcin Haba <marcin.haba@bacula.pl>
Mon, 23 Jun 2014 12:34:31 +0000 (14:34 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Mon, 23 Jun 2014 12:34:31 +0000 (14:34 +0200)
gui/baculum/examples/baculum.lighttpd.conf [new file with mode: 0644]
gui/baculum/examples/baculum.users [new file with mode: 0644]

diff --git a/gui/baculum/examples/baculum.lighttpd.conf b/gui/baculum/examples/baculum.lighttpd.conf
new file mode 100644 (file)
index 0000000..d3fc3ab
--- /dev/null
@@ -0,0 +1,54 @@
+# Baculum WebGUI tool for Bacula Community
+#
+# Web Server Configuration
+#
+
+server.port           = 9095
+server.username       = "www-data"
+server.groupname      = "www-data"
+server.name           = "localhost"
+server.document-root  = "/var/www/baculum"
+server.errorlog       = "/var/www/baculum/protected/logs/baculum-error.log"
+accesslog.filename    = "/var/www/baculum/protected/logs/baculum-access.log"
+server.pid-file       = "/var/run/baculum.pid"
+
+server.modules = (
+        "mod_auth",
+        "mod_rewrite",
+        "mod_fastcgi",
+        "mod_accesslog"
+)
+
+auth.backend          = "plain" 
+auth.backend.plain.userfile = "/var/www/baculum/protected/Data/baculum.users"
+auth.require = ( "/" => (
+        "method" => "basic",
+        "realm" => "Baculum Auth",
+        "require" => "valid-user"
+))
+
+index-file.names      = ( "index.php" )
+
+static-file.exclude-extensions = ( ".php" )
+
+dir-listing.encoding  = "utf-8"
+
+mimetype.assign = (
+   ".html" => "text/html",
+   ".gif" => "image/gif",
+   ".png" => "image/png",
+   ".ico" => "image/x-icon",
+   ".css" => "text/css",
+   ".js" => "application/javascript",
+)
+
+fastcgi.server = (".php"=>((
+  "bin-path"=>"/usr/bin/php5-cgi",
+  "socket"=>"/tmp/php.socket"
+)))
+
+url.rewrite-once = (
+   "^/themes/(.+)$" => "/themes/$1",
+   "^/assets/(.+)$" => "/assets/$1",
+   "^/(.+)$" => "/index.php/$1"
+)
diff --git a/gui/baculum/examples/baculum.users b/gui/baculum/examples/baculum.users
new file mode 100644 (file)
index 0000000..3663ae8
--- /dev/null
@@ -0,0 +1 @@
+admin:admin
\ No newline at end of file