Web UI for CoreDNS
Go to file
2024-04-23 15:44:27 +08:00
.assets Squashed commit of the following: 2024-04-19 15:16:24 +08:00
.github/workflows merge from dev, ci-done 2024-04-23 15:44:27 +08:00
.vscode Squashed commit of the following: 2024-04-19 15:16:24 +08:00
cmd Squashed commit of the following: 2024-04-19 15:16:24 +08:00
controllers Squashed commit of the following: 2024-04-19 15:16:24 +08:00
database Squashed commit of the following: 2024-04-19 15:16:24 +08:00
docs Squashed commit of the following: 2024-04-19 15:16:24 +08:00
models Squashed commit of the following: 2024-04-19 15:16:24 +08:00
server Squashed commit of the following: 2024-04-19 15:16:24 +08:00
web merge from dev, ci-done 2024-04-23 15:44:27 +08:00
.envrc base framework 2024-04-02 21:23:28 +08:00
.gitignore merge from dev, ci-done 2024-04-23 15:44:27 +08:00
.nixd.json Squashed commit of the following: 2024-04-19 15:16:24 +08:00
default.nix env 2024-04-02 21:26:57 +08:00
Dockerfile merge from dev, ci-done 2024-04-23 15:44:27 +08:00
flake.lock Squashed commit of the following: 2024-04-19 15:16:24 +08:00
flake.nix merge from dev, ci-done 2024-04-23 15:44:27 +08:00
go.mod Squashed commit of the following: 2024-04-19 15:16:24 +08:00
go.sum Squashed commit of the following: 2024-04-19 15:16:24 +08:00
LICENSE
main.go merge from dev, ci-done 2024-04-23 15:44:27 +08:00
package-lock.json Squashed commit of the following: 2024-04-19 15:16:24 +08:00
package.json Squashed commit of the following: 2024-04-19 15:16:24 +08:00
README.md Squashed commit of the following: 2024-04-19 15:16:24 +08:00
shell.nix env 2024-04-02 21:26:57 +08:00
TODO Squashed commit of the following: 2024-04-19 15:16:24 +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