2021-04-04 11:51:11 +00:00
|
|
|
# Backgruond
|
|
|
|
|
|
|
|
This component serves allowed list of keyfob UID hashes from MongoDB and
|
|
|
|
pushes open door commands to door controllers.
|
|
|
|
|
|
|
|
# Testing endpoints
|
|
|
|
|
|
|
|
```
|
|
|
|
source .env
|
|
|
|
curl -f http://doorboy.infra.k-space.ee:5000/allowed -H "KEY: $DOORBOY_SECRET" | md5sum
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2021-04-04 08:58:45 +00:00
|
|
|
# Deploying
|
|
|
|
|
|
|
|
```
|
|
|
|
docker build -t 172.20.40.1:5000/doorboy:latest .
|
|
|
|
docker push 172.20.40.1:5000/doorboy:latest
|
|
|
|
overnode pull
|
|
|
|
overnode up
|
|
|
|
```
|
|
|
|
|