More env vars for config.php added.
This commit is contained in:
1 parent
0d51afedfa
commit
11ab16e767
3 files changed
+5
-53
No files matched your search
+3
-1
@@ -42,11 +42,13 @@ COPY config.php /var/www/html/config.php
|
|||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
|
|
||||||
ENV APACHE2_PORT=80
|
ENV APACHE2_PORT=80
|
||||||
ENV PASSPHRASE=
|
ENV PASSPHRASE=admin
|
||||||
ENV RWSOLS_MAX_PINGS=15
|
ENV RWSOLS_MAX_PINGS=15
|
||||||
ENV RWSOLS_SLEEP_TIME=5
|
ENV RWSOLS_SLEEP_TIME=5
|
||||||
ENV RWSOLS_COMPUTER_NAME=
|
ENV RWSOLS_COMPUTER_NAME=
|
||||||
ENV RWSOLS_COMPUTER_MAC=
|
ENV RWSOLS_COMPUTER_MAC=
|
||||||
ENV RWSOLS_COMPUTER_IP=
|
ENV RWSOLS_COMPUTER_IP=
|
||||||
|
ENV RWSOLS_SLEEP_PORT=7760
|
||||||
|
ENV RWSOLS_SLEEP_CMD=suspend
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
+2
-2
@@ -34,12 +34,12 @@
|
|||||||
// This is the Port being used by the Windows SleepOnLan Utility to initiate a Sleep State
|
// This is the Port being used by the Windows SleepOnLan Utility to initiate a Sleep State
|
||||||
// http://www.ireksoftware.com/SleepOnLan/
|
// http://www.ireksoftware.com/SleepOnLan/
|
||||||
// Alternate Download Link: http://www.jeremyblum.com/wp-content/uploads/2013/07/SleepOnLan.zip
|
// Alternate Download Link: http://www.jeremyblum.com/wp-content/uploads/2013/07/SleepOnLan.zip
|
||||||
$COMPUTER_SLEEP_CMD_PORT = 7760;
|
$COMPUTER_SLEEP_CMD_PORT = REPLACE_RWSOLS_SLEEP_PORT;
|
||||||
|
|
||||||
// Command to be issued by the windows sleeponlan utility
|
// Command to be issued by the windows sleeponlan utility
|
||||||
// options are suspend, hibernate, logoff, poweroff, forcepoweroff, lock, reboot
|
// 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
|
// You can create a windows scheduled task that starts sleeponlan.exe on boot with following startup parameters /auto /port=7760
|
||||||
$COMPUTER_SLEEP_CMD = "suspend";
|
$COMPUTER_SLEEP_CMD = "REPLACE_RWSOLS_SLEEP_CMD";
|
||||||
|
|
||||||
// This is the location of the bootstrap style folder relative to your index and config file. Default = "" (Same folder as this file)
|
// 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.
|
// 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.
|
||||||
|
|||||||
-50
@@ -1,50 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
Remote Wake/Sleep-On-LAN Server [CONFIGURATION FILE]
|
|
||||||
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 = "532eaabd9574880dbf76b9b8cc00832c20a6ec113d682299550d7a6e0f345e25";
|
|
||||||
|
|
||||||
// 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("Pc1","NAS");
|
|
||||||
|
|
||||||
// This is the MAC address of the Network Interface on the computer you are trying to wake.
|
|
||||||
$COMPUTER_MAC = array("54:04:A6:3C:B2:D5","AA:AA:AA");
|
|
||||||
|
|
||||||
// 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.178.45","192.168.178.100");
|
|
||||||
|
|
||||||
// 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 = "";
|
|
||||||
?>
|
|
||||||
Reference in new issue
Block a user