diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-05 17:02:59 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-05 17:02:59 +0000 |
commit | 6bf575618cf9022e99cbfcc64036fd9db79a749c (patch) | |
tree | f692d02fb905cd3d5bab465b790da48fb2de546b /www-apps/bareos-webui/files | |
parent | 5944ce177026c93b7dab690db9d970567ddbf75f (diff) |
gentoo auto-resync : 05:12:2023 - 17:02:58
Diffstat (limited to 'www-apps/bareos-webui/files')
-rw-r--r-- | www-apps/bareos-webui/files/apache.conf | 50 | ||||
-rw-r--r-- | www-apps/bareos-webui/files/nginx.include | 17 | ||||
-rw-r--r-- | www-apps/bareos-webui/files/postinstall-en.txt | 36 |
3 files changed, 103 insertions, 0 deletions
diff --git a/www-apps/bareos-webui/files/apache.conf b/www-apps/bareos-webui/files/apache.conf new file mode 100644 index 000000000000..60eea6e12fd0 --- /dev/null +++ b/www-apps/bareos-webui/files/apache.conf @@ -0,0 +1,50 @@ +# +# Bareos WebUI Apache configuration file +# + +# Environment Variable for Application Debugging +# Set to "development" to turn on debugging mode or +# "production" to turn off debugging mode. +<IfModule env_module> + SetEnv "APPLICATION_ENV" "production" +</IfModule> + +Alias /bareos-webui /var/www/localhost/htdocs/bareos-webui/public + +<Directory /var/www/localhost/htdocs/bareos-webui> + + Options FollowSymLinks + AllowOverride None + + <IfModule mod_authz_core.c> + <IfModule mod_access_compat.c> + Order deny,allow + </IfModule> + Require all granted + </IfModule> + + #<IfModule mod_rewrite.c> + <IfModule rewrite_module> + RewriteEngine on + RewriteBase /bareos-webui + RewriteCond %{REQUEST_FILENAME} -s [OR] + RewriteCond %{REQUEST_FILENAME} -l [OR] + RewriteCond %{REQUEST_FILENAME} -d + RewriteRule ^.*$ - [NC,L] + RewriteRule ^.*$ index.php [NC,L] + </IfModule> + + <IfDefine PROXY> + <FilesMatch "\.php$"> + SetHandler "proxy:unix:/var/run/php-fpm/www.sock|fcgi://localhost" + </FilesMatch> + + # Set it to handle the files + <IfModule mime_module> + AddHandler application/x-httpd-php .php .php5 .phtml + AddHandler application/x-httpd-php-source .phps + </IfModule> + + DirectoryIndex index.php index.phtml + </IfDefine> +</Directory> diff --git a/www-apps/bareos-webui/files/nginx.include b/www-apps/bareos-webui/files/nginx.include new file mode 100644 index 000000000000..2d6ab2978ba1 --- /dev/null +++ b/www-apps/bareos-webui/files/nginx.include @@ -0,0 +1,17 @@ +server { + + listen 9100; + server_name bareos; + root /var/www/localhost/htdocs/bareos-webui/public; + + location / { + index index.php; + try_files $uri $uri/ /index.php?$query_string; + } + + location ~ .php$ { + snippets/fastcgi-php.conf + fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_param APPLICATION_ENV production; + } +} diff --git a/www-apps/bareos-webui/files/postinstall-en.txt b/www-apps/bareos-webui/files/postinstall-en.txt new file mode 100644 index 000000000000..cd8b10f3b530 --- /dev/null +++ b/www-apps/bareos-webui/files/postinstall-en.txt @@ -0,0 +1,36 @@ +1. Edit webui ini files + + - if your bareos-dir is not running on localhost you need + to edit /etc/bareos-webui/directors.ini + + - maybe you want to edit the webui settings in + /etc/bareos-webui/configuration.ini + + NOTE: If you want to run more than one instance of bareos-webui and + you need to use different ini-files per vhost you can set + BAREOS_WEBUI_CONFDIR in the webserver env to point to another + directory than /etc/bareos-webui. + +2. Edit bareos-dir configuration + + - some required bareos-dir config snippets have been installed + to /etc/bareos/bareos-dir.d. You need at least to + cp /etc/bareos/bareos-dir.d/console/admin.conf{.example,} + and edit /etc/bareos/bareos-dir.d/console/admin.conf to set + login credentials for webui login + + - don't forget to reload bareos-dir + +3. Edit webserver configuration + + - starting from bareos 23, using php-fpm is a requirement + so be sure to have a working php-fpm setup + + - as a starting point you may include a config from + /usr/share/webapps/${PN}/${PVR}/conf + + - IMPORTANT: make sure the docroot of your webserver points to + the public/ folder within webapp htdocs directory + +For more details about how to setup the bareos webui, see: +https://docs.bareos.org/IntroductionAndTutorial/InstallingBareosWebui.html |