Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sailing:filebrowser [2024/01/08 14:15] – willy | sailing:filebrowser [2024/01/18 10:44] (current) – removed willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== FileBrowser ====== | ||
- | |||
- | [[https:// | ||
- | |||
- | I do not like the default installation method because it will install system-wide. I will show you how to install in a more cusotmized way. | ||
- | |||
- | first you need to create a new user: | ||
- | <code bash> | ||
- | > useradd -d / | ||
- | </ | ||
- | |||
- | Then, as // | ||
- | <code bash> | ||
- | > su - filebrowser | ||
- | > tar xvf linux-amd64-filebrowser.tar.gz | ||
- | > ./ | ||
- | </ | ||
- | |||
- | since it will be hidden behind the reverse proxy, you can disable FileBrowser internal authentication. | ||
- | |||
- | Now, a startup script: | ||
- | <file filebrowser.sh> | ||
- | #!/bin/bash | ||
- | cd / | ||
- | ./ | ||
- | </ | ||
- | |||
- | And the usual autostart stuff: | ||
- | <file 40-filebrowser.start> | ||
- | #!/bin/bash | ||
- | start-stop-daemon -b -m -p / | ||
- | </ | ||
- | |||
- | Make both files executable. | ||
- | |||
- | Now, reverse proxy is simple, but this into **/ | ||
- | <file filebrowser.conf> | ||
- | |||
- | location / | ||
- | client_max_body_size 512M; | ||
- | |||
- | proxy_pass http:// | ||
- | proxy_http_version 1.1; | ||
- | |||
- | proxy_set_header Connection $http_connection; | ||
- | proxy_set_header Connection ' | ||
- | proxy_cache_bypass $http_upgrade; | ||
- | proxy_set_header Host $host; | ||
- | proxy_set_header X-Real-IP $remote_addr; | ||
- | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
- | proxy_set_header X-Forwarded-Proto $scheme; | ||
- | } | ||
- | </ | ||
- | |||
- | and put this file include inside the usual **/ | ||
- | |||
- | |||