Skip to content

Commit

Permalink
feat: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Quadrubo committed Jul 13, 2023
1 parent 93f127e commit 5ec42a9
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .env.prod.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_NAME=WOL-Client
APP_NAME=Waky
APP_ENV=production
APP_KEY=
APP_DEBUG=false
Expand Down
2 changes: 1 addition & 1 deletion .env.sail.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_NAME=WOL-Client
APP_NAME=Waky
APP_ENV=local
APP_KEY=
APP_DEBUG=true
Expand Down
57 changes: 41 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,47 @@
# WOL-Client
# Waky

A web based Wake-on-LAN Server for managing servers in your home network!

## Getting Started

To install Waky you can use the provided Docker images.

### Install with Docker Compose

```yml
version: '3'
services:
waky:
container_name: waky
ports:
- '8080:80'
- '8443:443'
- '6001:6001' # Websocket server
environment:
- PUID=1000
- PGID=1000
- APP_URL=http://localhost:8080
- TZ=Europe/Berlin
volumes:
- '/etc/localtime:/etc/localtime:ro'
- './data/config:/config' # Directory for sqlite database & .env
- './data/ssl/web:/etc/ssl/web' # Directory for ssl certificates
image: 'ghcr.io/quadrubo/waky:latest'
restart: unless-stopped
```
Run `docker compose up` to start the application.

You can now login to your instance with the user below. Once authenticated, it is recommended to change your email and password.

| Username | Password |
| ----------------- | -------- |
| [email protected] | password |

**Warning:** This account will be recreated if there are no users in the system.

## Contributing

These instructions will give you a copy of the project up and running on
your local machine for development and testing purposes. See deployment
for notes on deploying the project on a live system.
Expand All @@ -19,7 +57,7 @@ I also assume that you [configured the sail alias](https://laravel.com/docs/9.x/
First clone the project to your local system.

```
git clone https://github.com/Quadrubo/wol-client
git clone https://github.com/Quadrubo/waky
```
[Install the composer dependencies](https://laravel.com/docs/9.x/sail#installing-composer-dependencies-for-existing-projects) using Laravel Sail.
Expand Down Expand Up @@ -111,19 +149,6 @@ This sends you notifications when a computer switches from no to one or one to n
sail test
```
## Deployment

To deploy this on a live system, you **should not** use Laravel Sail.
I also had trouble getting it to run with Docker, because the Wake-on-LAN magic packet wouldn't route out of the container. If you find a way to run this within Docker I'd gladly accept a Pull Request with a compose file.

In production, I currently just run this with `php8.2-fpm`, `nginx` and a `mariadb` database. Please check the Laravel documentation on [Deployment](https://laravel.com/docs/9.x/deployment) for more details.

Build the vite production environment.

```
npm run build
```

## Built With
- [Laravel](https://github.com/laravel/framework) - Framework
Expand All @@ -138,7 +163,7 @@ All contributions are welcome! Just fork the project. [Setup the development env
- **[Billie Thompson](https://github.com/PurpleBooth)** - _Provided [README Template](https://github.com/PurpleBooth/a-good-readme-template)_
See also the list of
[contributors](https://github.com/Quadrubo/wol-client/graphs/contributors)
[contributors](https://github.com/Quadrubo/waky/graphs/contributors)
who participated in this project.
## License
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: '3'
services:
wol-client:
waky:
build:
context: ./
dockerfile: Dockerfile
container_name: wol-client
container_name: waky
ports:
- '8080:80'
- '8443:443'
Expand All @@ -18,5 +18,5 @@ services:
- '/etc/localtime:/etc/localtime:ro'
- './data/config:/config' # Directory for sqlite database & .env
- './data/ssl/web:/etc/ssl/web' # Directory for ssl certificates
image: wol-client
image: waky
restart: unless-stopped

0 comments on commit 5ec42a9

Please sign in to comment.