From b2ff21164217d1f4251b2975c8431f6a6e453f2f Mon Sep 17 00:00:00 2001 From: favonia Date: Tue, 1 Oct 2024 08:53:37 -0500 Subject: [PATCH] docs: relicense all contributions --- CONTRIBUTORS.markdown | 7 +------ README.markdown | 2 +- contrib/README.markdown | 7 +++++++ contrib/systemd/cloudflare-ddns.service | 19 +++++++++++++++++++ contrib/systemd/cloudflare-ddns.service.env | 2 ++ 5 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 contrib/systemd/cloudflare-ddns.service create mode 100644 contrib/systemd/cloudflare-ddns.service.env diff --git a/CONTRIBUTORS.markdown b/CONTRIBUTORS.markdown index 8489fbc2..b8055636 100644 --- a/CONTRIBUTORS.markdown +++ b/CONTRIBUTORS.markdown @@ -2,10 +2,5 @@ - Favonia @favonia contributed the majority of the code and its documentation. - Brandon @skarekrow provided a sample OpenBSD `rc.d` script. -- @JvdMaat helped improve [`README`](./README.markdown). - -# Past Contributors - -The contributions of the following people were removed when the license was changed from “Apache 2.0” to “Apache 2.0 _with LLVM exceptions”._ - - Thomas @symgryph provided sample `systemd` configuration files. +- @JvdMaat helped improve [`README`](./README.markdown). diff --git a/README.markdown b/README.markdown index cce9c84a..afd0dad1 100644 --- a/README.markdown +++ b/README.markdown @@ -271,7 +271,7 @@ _(Click to expand the following items.)_ | `CF_API_TOKEN` (will be deprecated in version 2.0.0) | Same as `CLOUDFLARE_API_TOKEN` | | `CF_API_TOKEN_FILE` (will be deprecated version in 2.0.0) | Same as `CLOUDFLARE_API_TOKEN_FILE` | -> 🚂 Cloudflare is updating its tools to use environment variables starting with `CLOUDFLARE_*` instead of `CF_*`. It is recommended to align your setting to align with this new convention. However, the updater will fully support both `CLOUDFLARE_*` and `CF_*` environment variables until version 2.0.0. +> 🚂 Cloudflare is updating its tools to use environment variables starting with `CLOUDFLARE_*` instead of `CF_*`. It is recommended to align your setting with this new convention. However, the updater will fully support both `CLOUDFLARE_*` and `CF_*` environment variables until version 2.0.0. > > 🔑 To update DNS records, the updater needs the **Account - Account Filter Lists - Edit** permission. > diff --git a/contrib/README.markdown b/contrib/README.markdown index da1a3936..3dde1cf6 100644 --- a/contrib/README.markdown +++ b/contrib/README.markdown @@ -1,5 +1,12 @@ # Community Contributions +## 🆗 systemd + +_(contributed by [Thomas @sumgryph](https://github.com/symgryph))_ + +- See [cloudflare-ddns.service](./systemd/cloudflare-ddns.service) for a sample systemd service unit file. +- See [cloudflare-ddns.service.env](./systemd/cloudflare-ddns.service.env) for a sample systemd environment file. + ## 🐡 OpenBSD _(contributed by [Brandon @skarekrow](https://github.com/skarekrow))_ diff --git a/contrib/systemd/cloudflare-ddns.service b/contrib/systemd/cloudflare-ddns.service new file mode 100644 index 00000000..10e4777d --- /dev/null +++ b/contrib/systemd/cloudflare-ddns.service @@ -0,0 +1,19 @@ +[Unit] +Description=Cloudflare DDNS Updater +Documentation=https://github.com/favonia/cloudflare-ddns/blob/main/README.markdown +Requires=network-online.target +After=network-online.target + +[Install] +WantedBy=multi-user.target + +[Service] +Type=simple +EnvironmentFile=/etc/cloudflare-ddns/cloudflare-ddns.service.env +Delegate=yes +LimitNOFILE=infinity +LimitNPROC=infinity +LimitCORE=infinity +Restart=always +User=ddns +ExecStart=/usr/local/bin/ddns diff --git a/contrib/systemd/cloudflare-ddns.service.env b/contrib/systemd/cloudflare-ddns.service.env new file mode 100644 index 00000000..08c0a913 --- /dev/null +++ b/contrib/systemd/cloudflare-ddns.service.env @@ -0,0 +1,2 @@ +CLOUDFLARE_API_TOKEN=YOUR-CLOUDFLARE-API-TOKEN +DOMAINS=example.org,www.example.org,example.io