Knapoc / wol-rest-proxy

Minimalistic REST API for wake-on-lan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

arise 'em

This is a fork of arise'em. Full credit for ariseem goes to Timo Furrer. This fork provides additional environment variables within the Dockerfile and is published on docker hub.

ariseem is a minimalistic service exposing a REST API to boot machines using wake-on-lan.

It's pure Python and does not require any system dependencies.

Installation

Just use docker:

docker build . -t ariseem && docker run -v $PWD:/app --net=host -it ariseem

If you want to expose this service into the internet please make sure you are properly secured with a proxy in front of this service. TLS and at least some form of authentication.

Configuration

ariseem is configured via YAML file:

machines:
    myserver: AA:BB:CC:DD:EE:FF
    mypc: AA:BB:CC:FF:EE:DD

groups:
    vpn:
        - myserver
        - mypc

ariseem can only wol machines configured in the machines section. In addition groups of machines can be specified in the groups section.

Usage

GET /api/machines
POST /api/machines/myserver

GET /api/groups
POST /api/groups/vpn

Variables

  • ARISEEM_CONFIG: path of the config.yml file. Defaults to ./config.yml
  • FLASK_PORT: port used by FLASK. Defaults to 5555.
  • FLASK_DEBUG
  • FLASK_APP

About

Minimalistic REST API for wake-on-lan

License:MIT License


Languages

Language:Python 96.5%Language:Dockerfile 3.5%