Web UI for CoreDNS
Go to file
2024-04-23 15:23:35 +08:00
.assets done 2024-04-19 15:10:08 +08:00
.github/workflows ci-test 2024-04-23 15:23:35 +08:00
.vscode
cmd
controllers debug done. 2024-04-19 13:52:33 +08:00
database debug done. 2024-04-19 13:52:33 +08:00
docs
models debug done. 2024-04-19 13:52:33 +08:00
server debug done. 2024-04-19 13:52:33 +08:00
web comments 2024-04-22 12:35:37 +08:00
.envrc
.gitignore ci-test 2024-04-23 15:23:35 +08:00
.nixd.json
default.nix
Dockerfile ci-test 2024-04-23 15:23:35 +08:00
flake.lock
flake.nix ci-test 2024-04-23 15:23:35 +08:00
go.mod done 2024-04-19 15:10:08 +08:00
go.sum done 2024-04-19 15:10:08 +08:00
LICENSE
main.go ci-test 2024-04-23 15:23:35 +08:00
README.md done 2024-04-19 15:10:08 +08:00
shell.nix
TODO done 2024-04-19 15:10:08 +08:00

reCoreD-UI

Web UI for CoreDNS

UI

ui

Build

Install go and npm first.

# Build web first
(cd web && npm run build)

# Build server
go get .
go generate ./...
go build .

Running

Build coredns with mysql plugin first.

A mysql server is needed.

# example
export RECORED_MYSQL_DSN="recoredui:A123456a-@tcp(mysql.dev:3306)/recoredui?charset=utf8mb4"
./reCoreD-UI config db migrate

# setup admin user
./reCoreD-UI config user -u user -p password

# setup DNS
./reCoreD-UI config dns -s 1.1.1.1 -s 1.2.3.4

# run server and open http://localhost:3000
./reCoreD-UI server
# systemd service
[Unit]
Description=reCoreD-UI

[Service]
Type=simple
# RECORED_MYSQL_DSN="dsn"
EnvironmentFile=-/etc/default/recored-ui
EnvironmentFile=-/etc/sysconfig/recored-ui
ExecStart=/usr/local/bin/reCoreD-UI server

[Install]
WantedBy=multi-user.target