Skip to content

Commit

Permalink
Create openwrt.md
Browse files Browse the repository at this point in the history
  • Loading branch information
balzack authored Jan 24, 2024
1 parent f33ddfa commit 2eb5fdd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions doc/openwrt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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)
- you will likely also want to install nginx and configure it as a reverse proxy to the databag service

## Databag is currently included as a custom feed
- in feed.conf at the root of the repository add:
- src-git databag https://github.com/balzack/databag.git
- 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:
- make -j1 V=s package/databag/compile
- 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>'

0 comments on commit 2eb5fdd

Please sign in to comment.