A More Secure Internet Connection for Your Home https://fen.gg
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 
zauberstuhl 0bc30a877b Initial wifi integration (#7) pirms 9 mēnešiem
.agola Fix typo in agola config pirms 10 mēnešiem
.gitea/images Initial commit pirms 1 gada
build Initial commit pirms 1 gada
config Initial wifi integration (#7) pirms 9 mēnešiem
db/migrations Initial wifi integration (#7) pirms 9 mēnešiem
handler Initial wifi integration (#7) pirms 9 mēnešiem
helper Initial wifi integration (#7) pirms 9 mēnešiem
model Initial wifi integration (#7) pirms 9 mēnešiem
netfilter Remove obsolete benchmark tests pirms 10 mēnešiem
src Initial wifi integration (#7) pirms 9 mēnešiem
static Initial commit pirms 1 gada
types Initial wifi integration (#7) pirms 9 mēnešiem
utils Restructure the application folder modules pirms 11 mēnešiem
worker Initial wifi integration (#7) pirms 9 mēnešiem
.babelrc Initial commit pirms 1 gada
.editorconfig Initial commit pirms 1 gada
.eslintignore Initial commit pirms 1 gada
.eslintrc.js Initial commit pirms 1 gada
.gitignore Initial commit pirms 1 gada
.postcssrc.js Initial commit pirms 1 gada
LICENSE Initial commit pirms 1 gada
README.md Merge database migration files pirms 11 mēnešiem
go.mod Initial wifi integration (#7) pirms 9 mēnešiem
go.sum Initial wifi integration (#7) pirms 9 mēnešiem
index.html Initial commit pirms 1 gada
init.go Initial wifi integration (#7) pirms 9 mēnešiem
log.go Initial wifi integration (#7) pirms 9 mēnešiem
package.json Restructure the application folder modules pirms 11 mēnešiem
server.go Initial wifi integration (#7) pirms 9 mēnešiem
workers.go Initial wifi integration (#7) pirms 9 mēnešiem
yarn.lock Restructure the application folder modules pirms 11 mēnešiem

README.md

Fengg

A More Secure Internet Connection for Your Home A Malicious Traffic Detection System For Small Hardware

https://tea.fen.gg/fengg/server/raw/branch/master/.gitea/images/webinterface.png

Checkout fen.gg/crowdfunding and support us with a small donation.

Development

Compile assets and go binary

# build go binary
VERSION=$(git rev-parse --short HEAD) && \
  go build -o fengg -ldflags "-X tea.fen.gg/fengg/server/config.VERSION=$VERSION"

# set linux capabilities
sudo setcap 'cap_net_admin=+ep' fengg

# compile assets
yarn install
# use either dev or build
yarn [dev|build]

Run server application

./fengg

Cross-Compilation

VERSION=$(git rev-parse --short HEAD) \
CARCH="armv7h" \
CHOST="armv7l-unknown-linux-gnueabihf" \
GOARM="7" \
GOARCH="arm" \
go build \
  -o fengg \
  -ldflags "-s -w" \
  -gcflags=all=-trimpath=$(pwd) \
  -asmflags=all=-trimpath=$(pwd) \
  -ldflags "-X tea.fen.gg/fengg/server/config.VERSION=$VERSION"

Merge database migration files

Drop the database and create a new one. Afterwards remember the highest schema version and delete all files in db/migrations.

Then run the following command (replace XXX with the mentioned version):

pg_dump \
  -T public.schema_migrations \
  -O -s -U postgres -d fengg \
    | sed -e '/^--/d' \
    | sed -e '/^$/d' \
    | grep -v '^SELECT pg_catalog\.set_config.*search_path' \
  > db/migrations/000XXX_merged_initial_database.up.sql

Commit and test your changes!