From a9782bb8827ea7262b5bf94eced2d42107922b18 Mon Sep 17 00:00:00 2001 From: konsthol Date: Sat, 14 Dec 2024 14:19:33 +0200 Subject: [PATCH] features --- setup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup.sh b/setup.sh index 1079d9f..664c630 100644 --- a/setup.sh +++ b/setup.sh @@ -10,6 +10,16 @@ openssl x509 -req -days 365 -in certs/mycert.csr -signkey certs/mycert.key -out LOCATION="$(pwd)" +cat << EOF > $LOCATION/app/.env +# Environment variables +WOL_SECRET_KEY="changethis" +WOL_USER_PASS="changethat" +REDIS_URL="redis://localhost:6379/0" +DEVICE_MAC="00:00:00:00:00:00" +DEVICE_IP="192.168.0.0" +DEVICE_IFACE="eth0" +EOF + cat << EOF > /etc/systemd/system/wolServer.service [Unit] Description=wol-server