Shutdown from Browser is a simple web server built in Go that allows users to shut down their computer remotely using a web browser. With this tool, you can conveniently power off or restart your computer without needing to be physically present.
The web server uses React to provide a modern and responsive user interface, making it easy and intuitive for users to interact with the shutdown and restart functionality.
To build and run the Shutdown from Browser web server, you can use the included Makefile:
-
Clone the repository:
git clone https://github.com/korovindenis/shutdown-from-browser.git cd shutdown-from-browser
-
Initialize the
CONFIG_PATH
environment variable to point to the location of your configuration file:export CONFIG_PATH=/path/to/your/configs/config.prod.yaml
-
Use the Makefile to build the server:
make build
-
Run the server:
make run
The web server will be available at
http://localhost:8081/
.
Optionally, you can install Shutdown from Browser as a service to ensure it runs automatically on system startup. The Makefile provides a make install
target to do this for you.
The Shutdown from Browser web server allows you to customize its behavior by modifying the config.yaml
file. This file contains various settings that you can adjust according to your preferences.
The config.prod.yaml
file is straightforward to use, and it provides comments to guide you through the available settings. After making changes to the configuration, remember to restart the server for the modifications to take effect.
This project is licensed under the Apache License 2.0.
If you have any suggestions, find any issues, or would like to contribute to the project, feel free to create an Issue or Pull Request. We value your contributions and strive to improve the project continuously.
Thank you for using Shutdown from Browser! We hope this tool makes it more convenient for you to remotely control your computer's power state.