blackwind-portal

module
v0.0.0-...-5e85e46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: GPL-3.0

README

blackwind-portal

Blackwind Service Portal for account registration & VPN device management
DGIST students can make blackwind service account, and connect their devices to our VPN system through this portal

Reference

Pocket Base Doc

Install & Setup

Build

git clone https://github.com/blackwind-code/blackwind-portal.git
cd blackwind-portal/cmd/blackwind-portal
go build main.go

Run

export SECRET=<secret-password>

export VPN_DRIVER_URL=<blackwind-portal-driver-ip:port>
export OPENSTACK_DRIVER_URL=<blackwind-portal-driver-ip:port>

export CLOUDFLARE_X_AUTH_EMAIL=<cloudflare-email>
export CLOUDFLARE_GLOBAL_KEY=<cloudflare-global-api-key>
export DOMAIN_ZONE_IDENTIFIER=<cloudflare-dgist.cloud-zxone-id>

cd blackwind-portal/cmd/blackwind-portal/
./main serve

Set Database Schema

Register admin account on first startup (http://127.0.0.1:8090/_/)
Admin page: Settings(on the left menu bar) -> Import collections -> Load from JSON file -> import "config/pb_schema.json"

Directories

Path Synopsis
cmd
internal
dns
vpn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL