Skip to content

CDN for Open Source, Non-commercial CDN management

License

Notifications You must be signed in to change notification settings

skoqaq/cluckcdn_control

Repository files navigation

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. Clone

Please install Golang

# Clone
git clone https://github.com/ArsFy/cluckcdn_control.git
cd cluckcdn_control

2. Run!

Download

Open Releases and download the binary executable file

wget xxxxx
rm -rf *.go
chmod 775 xxxx
./xxxx

Build

go build .
rm -rf *.go
chmod 775 cluckcdn_control
./cluckcdn_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