Web UI for CoreDNS
Go to file
2024-04-23 13:18:10 +08:00
.assets done 2024-04-19 15:10:08 +08:00
.github/workflows ci-test 2024-04-23 13:18:10 +08:00
.vscode test stage 1 2024-04-19 09:44:37 +08:00
cmd test stage 1 2024-04-19 09:44:37 +08:00
controllers debug done. 2024-04-19 13:52:33 +08:00
database debug done. 2024-04-19 13:52:33 +08:00
docs swagger done 2024-04-19 12:47:00 +08:00
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 1 2024-04-20 11:02:48 +08:00
.nixd.json test stage 1 2024-04-19 09:44:37 +08:00
default.nix
Dockerfile done 2024-04-19 15:10:08 +08:00
flake.lock test stage 1 2024-04-19 09:44:37 +08:00
flake.nix 1 2024-04-20 11:02:48 +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 comments 2024-04-22 12:35:37 +08:00
package-lock.json
package.json
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