Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.91 KB

File metadata and controls

54 lines (37 loc) · 1.91 KB

Lagrange.Core

Core OneBot C# C#

License Telegram

An Implementation of NTQQ Protocol, with Pure C#, Derived from Konata.Core

Using with Docker

Tips:

Before creating the container, it is essential to mount the data folder/app/data to avoid the need for reauthentication every time you start the container. Additionally, it is advisable to also mount configuration file /app/appsettings.json.

If you encounter network issues, you can try using --network=host.

# 8081 port for ForwardWebSocket
docker run -d -p 8081:8081 eric1008818/lagrange.onebot:edge

Persistence Storage

docker volume create lagrange_data
docker run -d -v lagrange_data:/app/data eric1008818/lagrange.onebot:edge

Configure appsettings.json in Docker

Using Mount

use bind mount to mount your appsettings.json to /app/appsettings.json

docker run -d -v /etc/appsettings.json:/app/appsettings.json eric1008818/lagrange.onebot:edge

Using Environment Variables

use Enviroment Variables to set your appsettings.json

# disable reverse websocket
docker run -d -e Implementations__1__Enable=false eric1008818/lagrange.onebot:edge
# input username and password
docker run -d -e Account__Uin=123456 -e Account__Password=1234 eric1008818/lagrange.onebot:edge