]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/examples/rpm/baculum-api-lighttpd.conf
baculum: Remove unused api endpoints
[bacula/bacula] / gui / baculum / examples / rpm / baculum-api-lighttpd.conf
1 # Baculum WebGUI tool for Bacula Community
2 #
3 # Web Server Configuration
4 #
5
6 server.port           = 9096
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"
13
14 #
15 # NOTE: To enable encrypted connection please prepare cert files and
16 # then uncomment SSL lines below
17 #
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"
21
22 server.modules = (
23         "mod_auth",
24         "mod_alias",
25         "mod_rewrite",
26         "mod_setenv",
27         "mod_fastcgi",
28         "mod_access",
29         "mod_accesslog"
30 )
31
32 #
33 # Uncomment this line and closing braces below when you use OAuth2
34 #
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 = ( "/" => (
39                 "method" => "basic",
40                 "realm" => "Baculum Auth",
41                 "require" => "valid-user"
42                 )
43         )
44 # }
45
46 index-file.names = ( "index.php" )
47
48 static-file.exclude-extensions = ( ".php" )
49
50 dir-listing.encoding  = "utf-8"
51
52 mimetype.assign = (
53         ".html" => "text/html",
54         ".gif" => "image/gif",
55         ".png" => "image/png",
56         ".ico" => "image/x-icon",
57         ".css" => "text/css",
58         ".js" => "application/javascript"
59 )
60
61 alias.url = (
62         "/" => "/usr/share/baculum/htdocs/"
63 )
64
65 fastcgi.server = (
66         ".php"=> (
67                 (
68                         "bin-path"=>"/usr/bin/php-cgi",
69                         "socket"=>"/tmp/php.sock",
70                         "max-procs" => 1,
71                         "bin-environment" => (
72                                 "PHP_FCGI_CHILDREN" => "4",
73                                 "PHP_FCGI_MAX_REQUESTS" => "10000"
74                         ),
75                         "bin-copy-environment" => (
76                                 "PATH",
77                                 "SHELL",
78                                 "USER"
79                         ),
80                         "broken-scriptfilename" => "enable"
81                 )
82         )
83 )
84
85 url.rewrite-once = (
86         "^/themes/(.+)$" => "/themes/$1",
87         "^/assets/(.+)$" => "/assets/$1",
88         "^/$" => "/index.php/api/page/home/",
89         "^/(.+)$" => "/index.php/$1"
90 )
91
92 url.access-deny = (
93     "^/usr/share/baculum/htdocs/protected/",
94     "^/usr/share/baculum/htdocs/framework/",
95
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/"
99 )
100
101 ### Enable compressing dynamic content ###
102
103 # disable mod_compress when request a php file
104 $HTTP["url"] !~ "\.php$" {
105         compress.filetype = (
106                 "text/plain",
107                 "text/html",
108                 "text/javascript",
109                 "text/css",
110                 "text/xml"
111         )
112 }
113
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")
117 }