Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xaxm007/himeserv
A Local File Server to access files on old laptop via web browser using Nginx & Filebrowser.
https://github.com/xaxm007/himeserv
filebrowser homeserver nginx systemd-service
Last synced: about 1 month ago
JSON representation
A Local File Server to access files on old laptop via web browser using Nginx & Filebrowser.
- Host: GitHub
- URL: https://github.com/xaxm007/himeserv
- Owner: xaxm007
- Created: 2024-09-08T07:07:14.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-08T15:13:54.000Z (2 months ago)
- Last Synced: 2024-09-30T09:41:40.273Z (about 1 month ago)
- Topics: filebrowser, homeserver, nginx, systemd-service
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HimeServ
HimeServ is a "Home File Access Server". Using Nginx and Filebrowser to access files stored on my old laptop (arch) via a web browser in a local network.## Instructions
1. Install Nginx and Filebrowser:
```sh
sudo pacman -S nginx
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
```2. Edit Nginx configuration file for http:
```sh
sudo nvim /etc/nginx/nginx.conf
```
- Use this file [nginx.conf](nginx.conf) to direct the http request to the filebrowser service.3. Start & Enable Nginx:
```sh
sudo systemctl start nginx
sudo systemctl enable nginx
```4. Start FileBrowser:
```sh
sudo filebrowser -r -a -p 8080
```
- Access the FileBrowser by navigating to ``http://:8080`` in a web browser.- Default credientials:
- Username: `admin`
- Password: `admin`### Systemd Service Setup
5. Create configuration file:```sh
sudo nvim /etc/filebrowser/filebrowser.json
```
- Use this file [filebrowser.json](filebrowser.json) to hold command-line arguments for server to run automatically.- Remove the default created filebrowser.db from .
```sh
sudo rm //filebrowser.db
```- Run FileBrowser:
```sh
sudo filebrowser -c /etc/filebrowser/filebrowser.json
```6. Change Permissions for `.json` & `.db` file:
```sh
sudo chown : /etc/filebrowser/filebrowser.*
```- Note: Set `User` & `Group` same as in [filebrowser.service](filebrowser.service).
- Check using:
```sh
ls -la /etc/filebrowser/filebrowser.*
```7. Add System service:
```sh
sudo nvim /etc/systemd/system/filebrowser.service
```- Use this file [filebrowser.service](filebrowser.service) to setup service.
8. Run the FileBrowser Service:
```sh
cd /etc/systemd/system/
sudo systemctl enable filebrowser.service
sudo systemctl start filebrowser.service
sudo systemctl status filebrowser.service
sudo systemctl restart nginx
```## #Note:
Make the IP address of the server laptop static from the local network router.