RESTful API for LXC
Use it with Dashboard
git clone --recursive https://github.com/lxc-webpanel/lxc-rest.gitapt install python3-lxc
cd lxc-rest
pip install -r requirements.txtpython3 install/setup.pypython3 run.pygunicorn --bind :5000 app:appuwsgi --socket :5000 --protocol=http --wsgi app:appSet headers :
| key | value |
|---|---|
Content-Type |
application/json |
Authorization |
Bearer <token> |
- From your browser, get the swagger doc at http://localhost:5000/doc/
or
You can store instance configuration in instance/config.py
or
Set your own env var :
export LWP_CONFIG_FILE='/path/to/config/production.py'
- Logo : Thibaut Abou Mrad
