Chad fa892cb3bd
Add Micro Configurations (#18)
* Begin changing files to recommendations rather than actual contents, that way multiple examples can be shown and when they are changed to be the real .yml they are not added to the project.

* Shrink the PHP limits more.

* Convert all configurations to be micro/standard.

* Double check the script supports IPv6. Shrink case statement.

* Fix uncommented nc-oo.

* Shrink NC further.

* Change name of env example.

* Change name of env example.

* Do not provide micro versions of DNS or PhotoPrism.

* Fix error in NC checks, wants at least 512M.

* Shrink more.

* Add a folder to keep static resources.

* Copy static resources into the container. This unfortunately doubles the size right now. Maybe do a volume in the future.

* Bring the description up to date.

* Make the description slightly more agnostic.

* Be more consistent about using variable.
2024-01-24 11:05:44 +00:00
..
2024-01-24 11:05:44 +00:00

Dynamic DNS Updater

This script is meant to be added to cron if you are using afraid.org as your dynamic DNS provider. Similar may be possible with sites such as dyn.org or noip.com but are currently not supported in this project. Links to some of these product's self-built solutions can be found below.

Afraid.org Version 2 Instructions

  1. Install this project.

    git clone https://github.com/Hyperling/docker $PROJECT_DIR
    
  2. Add your user key to $PROJECT_DIR/Config/DynamicDNS/private.key. The key can be found on this page after signing in.

  3. Add this line to the system's cron scheduling using a command like crontab -e. The sleep waits anywhere from 0 to 55 minutes due to the Random/10.

    @hourly bash -c 'sleep $(( $RANDOM / 10 )); $PROJECT_DIR/Config/DynamicDNS/update_dns.sh'
    

TESTING

Please ensure all testing is done with the test or dry run flags. If you run this for your private key outside of your network then your Dynamic DNS may become inaccurate. This program is only intended to be run in a production manner on the network which needs the Dynamic DNS pointing towards it.

Example

$ ./update_dns.sh -4
Updated DOMAIN from 1:2:3:4:5:6:7:8 to 1.2.3.4
HTTP200
Status 0 is acceptable.
$ ./update_dns.sh -6
Updated DOMAIN from 1.2.3.4 to 1:2:3:4:5:6:7:8
HTTP200
Status 0 is acceptable.

Afraid.org Version 1 Instructions

Add one of these to your crontab. Basically what the script does without fancy options and checks. Please be concious of how often you knock on the servers, and preferably add a 30-45 second sleep so that you do not hit near :00 seconds.

*/4 * * * * sleep 28; curl http://freedns.afraid.org/dynamic/update.php?YOUR_V1_KEY_GOES_HERE
*/7 * * * * sleep 42; wget -O http://freedns.afraid.org/dynamic/update.php?YOUR_V1_KEY_GOES_HERE

Other Dynamic DNS Hosts

No-IP.org Instructions

Please see the official guide on installing the Dynamic Update Client (DUC).

https://my.noip.com/dynamic-dns/duc