CDN Control

Official Website: https://cluckcdn.buzz
Documentation (Traditional Chinese): https://cluckcdn.buzz/docs/


简体中文 README: README_CN.md

Please deploy the control centre on a separate server to ensure proper communication with all CDN nodes.

Recommended for Ubuntu/Debian servers (Centos is also available)

We are still in the testing stage and welcome your comments

1. Build

Please install Golang (>=1.15)

# Clone
git clone https://github.com/cluckcdn/control.git
cd control
# Downloads lib
go get github.com/prometheus/common/log
go get github.com/gin-contrib/sessions
go get github.com/gin-contrib/sessions/cookie
go get github.com/gin-gonic/gin
go get gopkg.in/yaml.v3
# Build
go build .

2. Run!

rm -rf *.go
chmod 775 control
./control

3. Change setting

Node communication: /static/config.yaml

You can modify “textToken” to communicate with other nodes, but please do not modify {ctrlServer} (This is an escape character)

control: {ctrlServer}
token: textToken

Admin / Node List: /config.json

You can change your username and password and add more admins

{
    "admin": {
        "cluckbird": "123456",
        "Test": "123456"
    },
    "node": [
        {
            "ip": "192.168.48.138",
            "name": "TestNode"
        }
    ]
}

Vhost(WebSite): vhost.json

Manual modification of this configuration file is not recommended, you can change it on the web.

[
    {
        "host": "testnode.com",
        "name": "TestWebSite",
        "proto": "https",
        "source": "172.217.31.227",
        "source_host": "www.google.com.hk",
        "text": "Test",
        "tls": false
    },
    {
        "host": "192.168.48.138",
        "key": "/node/tls/192.168.48.138.key",
        "name": "Test",
        "pen": "/node/tls/192.168.48.138.pen",
        "proto": "https",
        "source": "172.217.31.227",
        "source_host": "www.google.com.hk",
        "text": "Test",
        "tls": true
    }
]

4. Using the web-based admin panel

English is temporarily not supported

Error Page

Special thanks

Suddenly fucking want to write CDN’s me

GitHub

https://github.com/cluckcdn/control