User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:filebrowser [2024/08/26 13:11] – [Running] willyservices:filebrowser [2025/01/21 11:50] (current) – [Running] willy
Line 20: Line 20:
  
 That's it!  That's it! 
 +
 +In addition you might want to create the following **.bashrc**:
 +<file - .bashrc>
 +#!/bin/bash
 +
 +export UMASK=0002
 +export PATH=$PATH:~/bin
 +</file>
 +
 +==== Authentication ====
 +
 +<code bash>
 +filebrowser config set --auth.method=noauth
 +filebrowser config set --auth.method=proxy --auth.header=X-My-Header
 +</code>
 +
 +TBD
  
 ==== Reverse Proxy ==== ==== Reverse Proxy ====
Line 76: Line 93:
 command_background=true command_background=true
 command="/data/daemons/filebrowser/bin/filebrowser" command="/data/daemons/filebrowser/bin/filebrowser"
-command_args="-r ${FOLDER} -p ${PORT} -b ${BASE_URL} -d ${DATABASE} -l ${FB_LOG_PATH}/${FB_SLOT}/filebrowser.log"+command_args="-r \"${FOLDER}\" -p ${PORT} -b \"${BASE_URL}\" -d \"${DATABASE}\" -l ${FB_LOG_PATH}/${FB_SLOT}/filebrowser.log"
 command_user="${FB_USER}:${FB_GROUP}" command_user="${FB_USER}:${FB_GROUP}"
  
 start_pre() { start_pre() {
-        test -e "${FB_LOG_PATH}" || mkdir "${FB_LOG_PATH}" +        if [ "${FB_SLOT}" != "filebrowser"
-        test -e "${FB_LOG_PATH}/${FB_SLOT}" || { +        then 
-                mkdir "${FB_LOG_PATH}/${FB_SLOT}" +                test -e "${FB_LOG_PATH}" || mkdir "${FB_LOG_PATH}" 
-        } && chown -R ${FB_USER} "${FB_LOG_PATH}/${FB_SLOT}"+                test -e "${FB_LOG_PATH}/${FB_SLOT}" || { 
 +                        mkdir "${FB_LOG_PATH}/${FB_SLOT}" 
 +                } && chown -R ${FB_USER} "${FB_LOG_PATH}/${FB_SLOT}" 
 +        else     
 +                ebegin "Error: do not run this script, run a link to it!" 
 +                eend 255 
 +        fi
 } }
 </file> </file>

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information