From 43f2e967200f26c57cb17b70d73815a741403251 Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Fri, 7 Aug 2026 15:46:33 +0200 Subject: [PATCH] LICENSE --- AGENTS.md | 7 ++++--- Dockerfile | 1 + LICENSE | 21 +++++++++++++++++++++ README.md | 4 ++++ app/__init__.py | 2 ++ app/cloudflare.py | 2 ++ app/config.py | 2 ++ app/freedns.py | 2 ++ app/fritzbox.py | 2 ++ app/healthcheck.py | 2 ++ app/main.py | 2 ++ app/state.py | 2 ++ 12 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 LICENSE diff --git a/AGENTS.md b/AGENTS.md index d7faed4..ee221ac 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -37,7 +37,8 @@ Kontext: [`SPEC.md`](SPEC.md) (Design), [`PLAN.md`](PLAN.md) (Tasks), - Python-Code mit Ruff formatieren (line-length 100, double quotes). - Änderungen an `SPEC.md`/`PLAN.md`/`README.md` mitziehen, wenn sich Design/Betrieb ändert. -## Lizenz +## License -MIT – Copyright Stefan Koelle (https://stefankoelle.de). Lizenz-Header bei neuen -Quellcode-Dateien ergänzen, wenn möglich mit `/add-license`. +MIT License - Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +- Full text in `LICENSE` +- License headers in all source code files diff --git a/Dockerfile b/Dockerfile index a375a0f..e392234 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ RUN useradd --create-home --shell /bin/bash appuser WORKDIR /app +COPY LICENSE . COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e9d1c67 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index d468e57..be8262e 100644 --- a/README.md +++ b/README.md @@ -63,3 +63,7 @@ ruff format --check . Wird automatisch per GitHub Actions nach `ghcr.io/skoelle/dyndns-updater` gebaut (siehe `.github/workflows/build-and-push.yml`). + +## License + +Licensed under the [MIT License](LICENSE) - Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) diff --git a/app/__init__.py b/app/__init__.py index e69de29..91f759e 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -0,0 +1,2 @@ +# Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +# Licensed under the MIT License. See LICENSE file in project root for details. diff --git a/app/cloudflare.py b/app/cloudflare.py index c2719ca..012a5c6 100644 --- a/app/cloudflare.py +++ b/app/cloudflare.py @@ -1,3 +1,5 @@ +# Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +# Licensed under the MIT License. See LICENSE file in project root for details. import logging import requests diff --git a/app/config.py b/app/config.py index d8f8f57..0f2fc4b 100644 --- a/app/config.py +++ b/app/config.py @@ -1,3 +1,5 @@ +# Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +# Licensed under the MIT License. See LICENSE file in project root for details. import logging import os import sys diff --git a/app/freedns.py b/app/freedns.py index a0a4e00..119adef 100644 --- a/app/freedns.py +++ b/app/freedns.py @@ -1,3 +1,5 @@ +# Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +# Licensed under the MIT License. See LICENSE file in project root for details. import logging import requests diff --git a/app/fritzbox.py b/app/fritzbox.py index 41d492e..ac42ce7 100644 --- a/app/fritzbox.py +++ b/app/fritzbox.py @@ -1,3 +1,5 @@ +# Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +# Licensed under the MIT License. See LICENSE file in project root for details. import logging import time diff --git a/app/healthcheck.py b/app/healthcheck.py index a6f3b8e..cbf8ab4 100644 --- a/app/healthcheck.py +++ b/app/healthcheck.py @@ -1,3 +1,5 @@ +# Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +# Licensed under the MIT License. See LICENSE file in project root for details. import logging import requests diff --git a/app/main.py b/app/main.py index e7b44b1..7e461e3 100644 --- a/app/main.py +++ b/app/main.py @@ -1,3 +1,5 @@ +# Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +# Licensed under the MIT License. See LICENSE file in project root for details. import concurrent.futures import logging import threading diff --git a/app/state.py b/app/state.py index 7ac3976..f89c82e 100644 --- a/app/state.py +++ b/app/state.py @@ -1,3 +1,5 @@ +# Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +# Licensed under the MIT License. See LICENSE file in project root for details. import json import logging import os