Web UI for CoreDNS
Go to file
2024-04-22 12:35:37 +08:00
.assets done 2024-04-19 15:10:08 +08:00
.github/workflows github 2024-04-19 15:21:44 +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 base framework 2024-04-02 21:23:28 +08:00
.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 env 2024-04-02 21:26:57 +08:00
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 Initial commit 2024-04-02 13:15:00 +00:00
main.go comments 2024-04-22 12:35:37 +08:00
package-lock.json base UI 2024-04-08 09:37:32 +08:00
package.json base UI 2024-04-08 09:37:32 +08:00
README.md done 2024-04-19 15:10:08 +08:00
shell.nix env 2024-04-02 21:26:57 +08:00
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