1 # Baculum WebGUI tool for Bacula Community
3 # Web Server Configuration
7 server.username = "lighttpd"
8 server.groupname = "lighttpd"
9 server.document-root = "/usr/share/baculum/htdocs"
10 server.errorlog = "/var/log/lighttpd/baculum-api-error.log"
11 accesslog.filename = "/var/log/lighttpd/baculum-api-access.log"
12 server.pid-file = "/var/run/baculum-api.pid"
15 # NOTE: To enable encrypted connection please prepare cert files and
16 # then uncomment SSL lines below
18 #ssl.engine = "enable"
19 #ssl.pemfile = "/etc/baculum/Config-api-lighttpd/baculum.pem"
20 #ssl.ca-file = "/etc/baculum/Config-api-lighttpd/baculum.crt"
33 # Uncomment this line and closing braces below when you use OAuth2
35 # $HTTP["url"] =~ "^/web/page/.*$" {
36 auth.backend = "htpasswd"
37 auth.backend.htpasswd.userfile = "/usr/share/baculum/htdocs/protected/API/Config/baculum.users"
38 auth.require = ( "/" => (
40 "realm" => "Baculum Auth",
41 "require" => "valid-user"
46 index-file.names = ( "index.php" )
48 static-file.exclude-extensions = ( ".php" )
50 dir-listing.encoding = "utf-8"
53 ".html" => "text/html",
54 ".gif" => "image/gif",
55 ".png" => "image/png",
56 ".ico" => "image/x-icon",
58 ".js" => "application/javascript"
62 "/" => "/usr/share/baculum/htdocs/"
68 "bin-path"=>"/usr/bin/php-cgi",
69 "socket"=>"/tmp/php.sock",
71 "bin-environment" => (
72 "PHP_FCGI_CHILDREN" => "4",
73 "PHP_FCGI_MAX_REQUESTS" => "10000"
75 "bin-copy-environment" => (
80 "broken-scriptfilename" => "enable"
86 "^/themes/(.+)$" => "/themes/$1",
87 "^/assets/(.+)$" => "/assets/$1",
88 "^/$" => "/index.php/api/page/home/",
89 "^/(.+)$" => "/index.php/$1"
93 "^/usr/share/baculum/htdocs/protected/",
94 "^/usr/share/baculum/htdocs/framework/",
96 # Wsat is not used by Baculum. Added here for not storing
97 # framework Apache specific .htaccess files
98 "^/usr/share/baculum/htdocs/framework/Wsat/themes/"
101 ### Enable compressing dynamic content ###
103 # disable mod_compress when request a php file
104 $HTTP["url"] !~ "\.php$" {
105 compress.filetype = (
114 # enable mod_setenv for framework source files:
115 $HTTP["url"] =~ "^/usr/share/baculum/htdocs/framework/Web/Javascripts/source/" {
116 setenv.add-response-header = ("Content-Encoding" => "gzip")