databag/doc/openwrt.md

29 lines
1.3 KiB
Markdown
Raw Normal View History

2024-01-24 22:31:57 +00:00
# HowTo include Databag in an OpenWrt firmware image
These instructions assume can build an OpenWrt firmware for your hardware:
- guide: [https://openwrt.org/docs/guide-developer/start](https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem)
2024-01-24 22:38:08 +00:00
- you will likely also want to install nginx from the main feed and configure it as a reverse proxy to the databag service
2024-01-24 22:31:57 +00:00
## Databag is currently included as a custom feed
2024-01-26 22:06:02 +00:00
- clone the custom feed into the OpenWrt repo:
- git clone https://github.com/balzack/openwrt-databag.git
2024-01-25 04:10:27 +00:00
- in feeds.conf at the root of the repository add:
2024-01-26 22:06:02 +00:00
- src-cpy databag ./openwrt-databag/
2024-01-24 22:31:57 +00:00
- update the package list by running:
- scripts/feeds update databag
- install the pacakge by running:
- scripts/feeds install databag
- include the pacakge in the firmware by running:
- make menuconfig
- enable databag under net/instant messaging/databag
- build the firmware by running:
2024-01-26 22:11:11 +00:00
- make -j$(nproc) defconfig download clean world
2024-01-24 22:31:57 +00:00
- flash and boot the resulting image
## Configure the Databag service
- change the port as desired
- uci set databag.@databag[0].service_port='<port>'
- change the storage path to your mounted USB path
- uci set databag.@databag[0].store_path='<path>'
2024-01-24 22:35:09 +00:00
- reboot the device