docker run --name leninec -d -p 2931:2931 ghcr.io/hikariatama/leninec:latest
git clone https://github.com/hikariatama/leninec
cd leninec
pip install -r requirements.txt
cd server
uvicorn app:app --host 0.0.0.0 --port 2931
In order for websockets to works correctly, copy the following router config to your server:
location /ws {
proxy_pass http://127.0.0.1:2931;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}