Skip to content

lalekz/iomt-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iomt-project

Server part of a project related to the Internet of medical things

Mosquitto:

To start Mosquitto:

sudo systemctl start mosquitto 

To enable Mosquitto:

sudo systemctl enable mosquitto

To install and add jwt-auth plugin:

  1. Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Clone:
git clone git@github.com:wiomoc/mosquitto-jwt-auth.git
  1. Build:
cargo build --release
  1. Move plugin to /etc/mosquitto/
  2. Set enviroment variable JWT_KEY
  3. Uncomment strokes in mosquitto.conf

Flask app

  1. Create virtual environment
virtualenv .env
source .env/bin/activate
pip3 install -r requirements.txt
deactivate
  1. Create virtual host config in /etc/nginx/sites-available/ and create symbolic link
sudo ln -s /etc/nginx/sites-available/iomt /etc/nginx/sites-enabled
  1. Create /etc/systemd/system/iomt.service and start service
sudo systemctl start iomt
sudo systemctl enable iomt
  1. Start nginx
sudo systemctl start nginx
sudo systemctl enable nginx

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •