-
Install docker
-
Build images
git clone --depth 1 https://github.com/Nats-ji/TRSS-Yunzai-docker.git
cd ./TRSS-Yunzai-docker
sudo docker compose up
# stop the docker by press Ctrl+C
sudo vim ./yunzai/lagrange/appsettings.json
- Edit as the following
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
-- "SignServerUrl": "",
++ "SignServerUrl": "put-url-here",
"Account": {
"Uin": 0,
"Password": "",
"Protocol": "Linux",
"AutoReconnect": true,
"GetOptimumServer": true
},
"Message": {
"IgnoreSelf": true,
"StringPost": false
},
"QrCode": {
"ConsoleCompatibilityMode": false
},
"Implementations": [
{
"Type": "ReverseWebSocket",
-- "Host": "127.0.0.1",
-- "Port": 8080,
-- "Suffix": "/onebot/v11/ws",
++ "Host": "yunzai",
++ "Port": 2536,
++ "Suffix": "/OneBotv11",
"ReconnectInterval": 5000,
"HeartBeatInterval": 5000,
"AccessToken": ""
}
]
}
- Edit other configs
# yunzai config location
./yunzai/config
# genshin plugin config location
./yunzai/plugins/genshin/config
# redis data location
./yunzai/redis
- Start docker compose
sudo docker compose up
- Backup data
sudo backup.sh
cd ./backups
ls