forked from Deses/Remote-Wake-Sleep-On-LAN-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_sample.php
61 lines (50 loc) · 2.75 KB
/
config_sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/*
Remote Wake/Sleep-On-LAN Server
https://github.com/Deses/Remote-Wake-Sleep-On-LAN-Server
Forked from: https://github.com/sciguy14/Remote-Wake-Sleep-On-LAN-Server
Original Author: Jeremy E. Blum (http://www.jeremyblum.com)
Security Edits By: Felix Ryan (https://www.felixrr.pro)
License: GPL v3 (http://www.gnu.org/licenses/gpl.html)
UPDATE THE VALUES IN THIS FILE AND CHANGE THE NAME TO: "config.php"
*/
// Set the below to "true" (no quotes) to enforce HTTPS connections (don't forget to create a self-signed cert and enable it in Apache2)
$USE_HTTPS = false;
// Choose a passphrase and find the sha256 hash of that passphrase.
// You can use an online calculator to generate the hash: http://www.xorbin.com/tools/sha256-hash-calculator.
// Unless you are using an SSL connection to your server, remember that passphrases can still be obtained via a man-in-the-middle attack.
$APPROVED_HASH = "YOUR HASH HERE";
// This is the number of times that the WOL server will try to ping the target computer to check if it has woken up. Default = 15.
$MAX_PINGS = 15;
// This is the number of seconds to wait between pings commands when waking up or sleeping. Waking from shutdown or sleep will impact this.
$SLEEP_TIME = 5;
// This is the Name of the computers to appear in the drop down
$COMPUTER_NAME = array(
"computer1",
"computer2"
);
// This is the MAC address of the Network Interface on the computer you are trying to wake.
$COMPUTER_MAC = array(
"00:00:00:00:00:00",
"00:00:00:00:00:00"
);
// This is the LOCAL IP address of the computer you are trying to wake. Use a reserved DHCP through your router's administration interface to ensure it doesn't change.
$COMPUTER_LOCAL_IP = array(
"192.168.0.1",
"192.168.0.2"
);
// This is the Port being used by the Windows SleepOnLan Utility to initiate a Sleep State
// http://www.ireksoftware.com/SleepOnLan/
// Alternate Download Link: http://www.jeremyblum.com/wp-content/uploads/2013/07/SleepOnLan.zip
$COMPUTER_SLEEP_CMD_PORT = 7760;
// Command to be issued by the windows sleeponlan utility
// options are suspend, hibernate, logoff, poweroff, forcepoweroff, lock, reboot
// You can create a windows scheduled task that starts sleeponlan.exe on boot with following startup parameters /auto /port=7760
$COMPUTER_SLEEP_CMD = "suspend";
// This is the location of the bootstrap style folder relative to your index and config file. Default = "" (Same folder as this file)
// Directory must be called "bootstrap". You may wish to move if this WOL script is the "child" of a larger web project on your Pi, that will also use bootstrap styling.
// If if it on directory up, for example, you would set this to "../"
// Two directories up? Set too "../../"
// etc...
$BOOTSTRAP_LOCATION_PREFIX = "";
?>