From 780df1e3488b42663cc51806171e9a89cc7452aa Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 29 Sep 2025 13:46:19 +0200 Subject: [PATCH 1/5] Add MIT license and fix Debian packaging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add MIT License for maximum permissivity - Update Cargo.toml with complete package metadata including license - Update README.md with license information and explanation - Fix Debian package systemd service installation conflict (remove manual installation, let debhelper handle it automatically) The MIT License allows anyone to use, modify, and distribute this software with minimal restrictions. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- Cargo.toml | 8 ++++++++ LICENSE | 21 +++++++++++++++++++++ README.md | 4 +++- debian/rules | 4 +--- 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 LICENSE diff --git a/Cargo.toml b/Cargo.toml index 15b3456..b6f258c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,14 @@ name = "naas" version = "1.0.0" edition = "2021" +license = "MIT" +description = "No as a Service - A lightweight HTTP service that always says 'no'" +repository = "https://kode.naiv.no/olemd/naas" +homepage = "https://kode.naiv.no/olemd/naas" +authors = ["Ole-Morten Duesund "] +keywords = ["http", "service", "api", "no", "rust"] +categories = ["web-programming::http-server"] +readme = "README.md" [dependencies] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..565bc1e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Ole-Morten Duesund + +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 072c14b..7122dce 100644 --- a/README.md +++ b/README.md @@ -156,4 +156,6 @@ podman build --build-arg RUST_VERSION=1.75 -t naas:latest . ## License -MIT \ No newline at end of file +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. + +The MIT License is a permissive license that allows you to do almost anything with this code, including using it in commercial projects, modifying it, and distributing it, as long as you include the original copyright notice. \ No newline at end of file diff --git a/debian/rules b/debian/rules index a4def83..3973aa6 100755 --- a/debian/rules +++ b/debian/rules @@ -15,6 +15,4 @@ override_dh_auto_clean: override_dh_auto_install: dh_auto_install # Install config file - install -D -m 644 debian/naas.default debian/naas/etc/default/naas - # Install systemd service - install -D -m 644 debian/naas.service debian/naas/lib/systemd/system/naas.service \ No newline at end of file + install -D -m 644 debian/naas.default debian/naas/etc/default/naas \ No newline at end of file From 2879e5d9752f2e96f33060affb2048a06c0898ce Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 29 Sep 2025 13:49:06 +0200 Subject: [PATCH 2/5] Bump version to 1.0.1 - Update Cargo.toml version to 1.0.1 - Update debian/changelog with v1.0.1-1 release notes - Include MIT license addition and packaging fixes --- Cargo.toml | 2 +- debian/changelog | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b6f258c..8927d6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "naas" -version = "1.0.0" +version = "1.0.1" edition = "2021" license = "MIT" description = "No as a Service - A lightweight HTTP service that always says 'no'" diff --git a/debian/changelog b/debian/changelog index 6285def..9c81180 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +naas (1.0.1-1) unstable; urgency=medium + + * Add MIT License for maximum permissivity + * Fix Debian package systemd service installation conflict + * Update package metadata with license and repository information + * Improve README with license documentation + + -- Ole-Morten Duesund Sun, 29 Sep 2024 15:00:00 +0200 + naas (1.0.0-1) unstable; urgency=medium * Initial release of NaaS (No as a Service) From 9a56793399a12d4b9515d2c5ea04bb981e55d5e0 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 29 Sep 2025 13:50:42 +0200 Subject: [PATCH 3/5] Fix changelog dates to use correct year (2025) All changelog entries should be from today (Mon, 29 Sep 2025) at 13:00 --- debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9c81180..f33ed1f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,7 +5,7 @@ naas (1.0.1-1) unstable; urgency=medium * Update package metadata with license and repository information * Improve README with license documentation - -- Ole-Morten Duesund Sun, 29 Sep 2024 15:00:00 +0200 + -- Ole-Morten Duesund Mon, 29 Sep 2025 13:00:00 +0200 naas (1.0.0-1) unstable; urgency=medium @@ -16,4 +16,4 @@ naas (1.0.0-1) unstable; urgency=medium * Health check endpoint * Systemd service integration - -- Ole-Morten Duesund Fri, 27 Sep 2024 15:00:00 +0200 \ No newline at end of file + -- Ole-Morten Duesund Mon, 29 Sep 2025 13:00:00 +0200 \ No newline at end of file From e77704ba0312cc95124afff153da1d73266f681e Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 29 Sep 2025 13:54:11 +0200 Subject: [PATCH 4/5] Fix systemd service deprecation warning Replace deprecated MemoryLimit= with MemoryMax= to eliminate systemd warning about future removal of MemoryLimit= directive. --- debian/naas.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/naas.service b/debian/naas.service index 6067a02..00a4837 100644 --- a/debian/naas.service +++ b/debian/naas.service @@ -27,7 +27,7 @@ ProtectHome=true ReadWritePaths= # Resource limits -MemoryLimit=256M +MemoryMax=256M CPUQuota=50% [Install] From 716c5f344c03f5acea431ed697a70e80e59cbd60 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 29 Sep 2025 14:08:13 +0200 Subject: [PATCH 5/5] Add Open Graph meta tags and source repository link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add Open Graph and Twitter Card meta tags for better URL sharing - Simple frontend: "No" with minimalist description - Playground frontend: "No as a Service" with branded description - Add discreet "Source Code" footer link on playground page 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/main.rs | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/main.rs b/src/main.rs index c4d647c..391d175 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,14 @@ const SIMPLE_FRONTEND: &str = r#" No + + + + + + + +