Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjd90/server-switch
An app to call route once on email authorised without db
https://github.com/benjd90/server-switch
Last synced: about 1 month ago
JSON representation
An app to call route once on email authorised without db
- Host: GitHub
- URL: https://github.com/benjd90/server-switch
- Owner: BenjD90
- Created: 2019-11-25T08:02:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T14:44:33.000Z (about 2 years ago)
- Last Synced: 2023-03-02T13:01:40.830Z (almost 2 years ago)
- Language: TypeScript
- Size: 163 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# server-switch
An api to allow some users to turn on a server by calling an URL in HTTP.
Workflow :
- Call `GET /emails/authorized` to get list of authorized emails (set in conf)
- Call `POST /emails/:email` to receive an emailwith a token to turn on the server
- With the token in the email, call `POST /emails/siwtch-on/:token` to turn on the server# Dev
## Env variables :
- PORT
- NODE_ENV
- CONF_PATH## Build :
- `docker build .`
- run in dev : `docker-compose up`
- build for arm32v7 : `docker build . -t test -f Dockerfile.arm32v7`