2026-05-17 14:48:46 +08:00
|
|
|
# ServerWind
|
2026-05-17 14:42:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
##### Python 3.12 (or newer), git, and uv is required
|
|
|
|
|
|
|
|
|
|
### Clone repository
|
|
|
|
|
```
|
|
|
|
|
# Main repo
|
|
|
|
|
git clone https://repo.weispace.net/wei/ServerWind.git
|
|
|
|
|
|
|
|
|
|
# Mirror repo
|
|
|
|
|
git clone https://github.com/WeiDnite1222/ServerWind.git
|
|
|
|
|
```
|
|
|
|
|
|
2026-05-17 14:52:34 +08:00
|
|
|
### Configure virtual environment and install dependencies
|
2026-05-17 14:42:27 +08:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
uv python pin 3.12.10
|
|
|
|
|
uv pip install -r requirements.txt
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
### Create .env file
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
DISCORD_TOKEN="YOUR-TOKEN-HERE"
|
|
|
|
|
```
|
|
|
|
|
Replace `YOUR-TOKEN-HERE` to your Discord bot token.
|
|
|
|
|
|
|
|
|
|
### Use CF DDNSUpdater
|
|
|
|
|
|
|
|
|
|
#### Go to Cloudflare Dashboard > Click profile icon > Profile > Create Token > Edit zone token to generate token
|
|
|
|
|
|
|
|
|
|
Open 'config/cf.yaml' and replace some values.
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
allowedBroadcastServer: []
|
|
|
|
|
cfSecret: YOUR-CF-SECRET-KEY # Replace to your cf secret token
|
|
|
|
|
doIPCheckInterval: 600 # Next IP check interval (sec)
|
|
|
|
|
doUpdate: true # set it to true to enable updater
|
|
|
|
|
domains: [] # subdomains that you want auto-update (Example: { "name": "www.example.com", "proxied": true })
|
|
|
|
|
zone: null # zone of your domain name (such as example.com)
|
|
|
|
|
ddnsBroadcastCode: code-here # IMPORTANT: Replace it that only you know
|
2026-05-29 23:17:02 +08:00
|
|
|
maintenancePageDNS: "" # Maintenance page DNS name, such as maintenance.example.com
|
|
|
|
|
maintenancePageURL: "" # Deprecated fallback. Use maintenancePageDNS instead.
|
2026-05-29 23:01:47 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
For dns item, use this template:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
{
|
|
|
|
|
"name": "www.example.com", # DNS name
|
|
|
|
|
"proxied": false, # Enable proxy (Enable this if you want to hide your server's real IP)
|
|
|
|
|
"type": "A", # or "CNAME", "AAA", "TEXT", "MX"
|
2026-05-29 23:17:02 +08:00
|
|
|
"allowMaintenance": true # Redirect to maintenancePageDNS if maintenance mode is enabled.
|
2026-05-29 23:01:47 +08:00
|
|
|
}
|
2026-05-17 14:42:27 +08:00
|
|
|
```
|
|
|
|
|
|
2026-05-29 23:17:02 +08:00
|
|
|
Remember to restart the tool after you save the config file.
|