mirror of
https://github.com/eftechcombr/bacula.git
synced 2025-04-17 07:45:08 +00:00
109 lines
2.3 KiB
Plaintext
109 lines
2.3 KiB
Plaintext
# Baculum WebGUI tool for Bacula Community
|
|
#
|
|
# Web Server Configuration
|
|
#
|
|
|
|
server.port = 9096
|
|
server.username = "www-data"
|
|
server.groupname = "www-data"
|
|
server.document-root = "/usr/share/baculum/htdocs"
|
|
server.errorlog = "/var/log/lighttpd/baculum-api-error.log"
|
|
accesslog.filename = "/var/log/lighttpd/baculum-api-access.log"
|
|
server.pid-file = "/var/run/baculum-api.pid"
|
|
|
|
#
|
|
# NOTE: To enable encrypted connection please prepare cert files and
|
|
# then uncomment SSL lines below
|
|
#
|
|
#ssl.engine = "enable"
|
|
#ssl.pemfile = "/etc/baculum/Config-api-lighttpd/baculum.pem"
|
|
#ssl.ca-file = "/etc/baculum/Config-api-lighttpd/baculum.crt"
|
|
|
|
server.modules = (
|
|
"mod_auth",
|
|
"mod_alias",
|
|
"mod_rewrite",
|
|
"mod_setenv",
|
|
"mod_fastcgi",
|
|
"mod_access",
|
|
"mod_accesslog"
|
|
)
|
|
|
|
#
|
|
# Uncomment this line and closing braces below when you use OAuth2
|
|
#
|
|
#$HTTP["url"] =~ "^/panel.*$" {
|
|
auth.backend = "htpasswd"
|
|
auth.backend.htpasswd.userfile = "/usr/share/baculum/htdocs/protected/API/Config/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"
|
|
)
|
|
|
|
alias.url = (
|
|
"/" => "/usr/share/baculum/htdocs/"
|
|
)
|
|
|
|
fastcgi.server = (
|
|
".php"=> (
|
|
(
|
|
"bin-path"=>"/usr/bin/php-cgi",
|
|
"socket"=>"/tmp/php.sock",
|
|
"max-procs" => 1,
|
|
"bin-environment" => (
|
|
"PHP_FCGI_CHILDREN" => "4",
|
|
"PHP_FCGI_MAX_REQUESTS" => "10000"
|
|
),
|
|
"bin-copy-environment" => (
|
|
"PATH",
|
|
"SHELL",
|
|
"USER"
|
|
),
|
|
"broken-scriptfilename" => "enable"
|
|
)
|
|
)
|
|
)
|
|
|
|
url.rewrite-once = (
|
|
"^/themes/(.+)$" => "/themes/$1",
|
|
"^/assets/(.+)$" => "/assets/$1",
|
|
"^/((index\.php)?\?.+)?$" => "/index.php/panel/",
|
|
"^/api/page" => "/index.php/panel/",
|
|
"^/(.+)$" => "/index.php/$1"
|
|
)
|
|
|
|
url.access-deny = (
|
|
"^/usr/share/baculum/htdocs/protected/"
|
|
)
|
|
|
|
### Enable compressing dynamic content ###
|
|
|
|
# disable mod_compress when request a php file
|
|
$HTTP["url"] !~ "\.php$" {
|
|
compress.filetype = (
|
|
"text/plain",
|
|
"text/html",
|
|
"text/javascript",
|
|
"text/css",
|
|
"text/xml"
|
|
)
|
|
}
|