2024-04-23 15:44:27 +08:00
2024-04-19 15:16:24 +08:00
2024-04-23 15:44:27 +08:00
2024-04-19 15:16:24 +08:00
2024-04-19 15:16:24 +08:00
2024-04-19 15:16:24 +08:00
2024-04-19 15:16:24 +08:00
2024-04-19 15:16:24 +08:00
2024-04-23 15:44:27 +08:00
2024-04-02 21:23:28 +08:00
2024-04-23 15:44:27 +08:00
2024-04-19 15:16:24 +08:00
env
2024-04-02 21:26:57 +08:00
2024-04-23 15:44:27 +08:00
2024-04-19 15:16:24 +08:00
2024-04-23 15:44:27 +08:00
2024-04-19 15:16:24 +08:00
2024-04-19 15:16:24 +08:00
2024-04-02 13:15:00 +00:00
2024-04-23 15:44:27 +08:00
2024-04-19 15:16:24 +08:00
2024-04-19 15:16:24 +08:00
env
2024-04-02 21:26:57 +08:00
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
Description
Web UI for CoreDNS
Readme 2 MiB
Languages
TypeScript 54.9%
Go 38.5%
Nix 3.3%
CSS 2.6%
HTML 0.4%
Other 0.3%