From: Marcin Haba Date: Mon, 23 Jun 2014 12:34:31 +0000 (+0200) Subject: baculum: Added example Lighttpd configuration for Baculum and sample web server auth... X-Git-Tag: Release-7.0.5~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a5539e9d29dd9df88a56504d68712ebf291c3d50;p=bacula%2Fbacula baculum: Added example Lighttpd configuration for Baculum and sample web server auth file --- diff --git a/gui/baculum/examples/baculum.lighttpd.conf b/gui/baculum/examples/baculum.lighttpd.conf new file mode 100644 index 0000000000..d3fc3ab5f1 --- /dev/null +++ b/gui/baculum/examples/baculum.lighttpd.conf @@ -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 index 0000000000..3663ae8502 --- /dev/null +++ b/gui/baculum/examples/baculum.users @@ -0,0 +1 @@ +admin:admin \ No newline at end of file