Configuration
Create Admin User
Route to your_domain/init
to access the initialization page, enter your username and password to create an Admin user.
Add Server
Create Server
Route to server
page in ServerHub, you will get token
after create a new server
Copy Token
Fill in the Token to the ServerBee Web
service.
💡
The record interval can be set through the Record Interval field, in seconds.
Modify environment variables
Modify the environment variables, then rerun the one-click script and select option 2 Update to reinstall in the server_bee-backend/docker/.env
file.
If you have not used the one-click script, you can manually rerun it.
docker-compose down
docker-compose up -d
.env
RUST_LOG=waring
# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
NEXTAUTH_SECRET="Your_NextAuth_Secret_Key"
# ServerHub URL
NEXTAUTH_URL="hub:3000"
# MongoDB
MONGO_INITDB_ROOT_USERNAME=mongoadmin
MONGO_INITDB_ROOT_PASSWORD=secret
MONGODB_URI=mongodb://mongoadmin:secret@mongo:27017/
# Server JWT
SERVER_JWT_SECRET="Your_Server_Secret_Key"
# Web (optional if you don't want to get the status of local server)
SERVER_HOST="recorder:9528"
# Get from the ServerHub, also can set by settings of ServerBee Web dashboard
SERVER_TOKEN="Your_Server_Token"
Caddyfile
{
# turn on if your want SSL
auto_https off
}
:80, :443 {
# replace host with your recorder domain
@recorder host recorder.serverbee.app
reverse_proxy @recorder recorder:9528
# optional
# @web host web.serverhub.app
# reverse_proxy @web web:9527
route /api/i/* {
uri strip_prefix /api/i
reverse_proxy interactor:9529
}
reverse_proxy hub:3000
}