A More Secure Internet Connection for Your Home https://fen.gg
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 
zauberstuhl 0bc30a877b Initial wifi integration (#7) 9 meses atrás
.agola Fix typo in agola config 10 meses atrás
.gitea/images Initial commit 1 ano atrás
build Initial commit 1 ano atrás
config Initial wifi integration (#7) 9 meses atrás
db/migrations Initial wifi integration (#7) 9 meses atrás
handler Initial wifi integration (#7) 9 meses atrás
helper Initial wifi integration (#7) 9 meses atrás
model Initial wifi integration (#7) 9 meses atrás
netfilter Remove obsolete benchmark tests 10 meses atrás
src Initial wifi integration (#7) 9 meses atrás
static Initial commit 1 ano atrás
types Initial wifi integration (#7) 9 meses atrás
utils Restructure the application folder modules 11 meses atrás
worker Initial wifi integration (#7) 9 meses atrás
.babelrc Initial commit 1 ano atrás
.editorconfig Initial commit 1 ano atrás
.eslintignore Initial commit 1 ano atrás
.eslintrc.js Initial commit 1 ano atrás
.gitignore Initial commit 1 ano atrás
.postcssrc.js Initial commit 1 ano atrás
LICENSE Initial commit 1 ano atrás
README.md Merge database migration files 11 meses atrás
go.mod Initial wifi integration (#7) 9 meses atrás
go.sum Initial wifi integration (#7) 9 meses atrás
index.html Initial commit 1 ano atrás
init.go Initial wifi integration (#7) 9 meses atrás
log.go Initial wifi integration (#7) 9 meses atrás
package.json Restructure the application folder modules 11 meses atrás
server.go Initial wifi integration (#7) 9 meses atrás
workers.go Initial wifi integration (#7) 9 meses atrás
yarn.lock Restructure the application folder modules 11 meses atrás

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!