diff --git a/Cargo.toml b/Cargo.toml index 8927d6e..15b3456 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,7 @@ [package] name = "naas" -version = "1.0.1" +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 deleted file mode 100644 index 565bc1e..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -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 7122dce..072c14b 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,4 @@ podman build --build-arg RUST_VERSION=1.75 -t naas:latest . ## License -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 +MIT \ No newline at end of file diff --git a/debian/changelog b/debian/changelog index f33ed1f..6285def 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,12 +1,3 @@ -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 Mon, 29 Sep 2025 13:00:00 +0200 - naas (1.0.0-1) unstable; urgency=medium * Initial release of NaaS (No as a Service) @@ -16,4 +7,4 @@ naas (1.0.0-1) unstable; urgency=medium * Health check endpoint * Systemd service integration - -- Ole-Morten Duesund Mon, 29 Sep 2025 13:00:00 +0200 \ No newline at end of file + -- Ole-Morten Duesund Fri, 27 Sep 2024 15:00:00 +0200 \ No newline at end of file diff --git a/debian/naas.service b/debian/naas.service index 00a4837..6067a02 100644 --- a/debian/naas.service +++ b/debian/naas.service @@ -27,7 +27,7 @@ ProtectHome=true ReadWritePaths= # Resource limits -MemoryMax=256M +MemoryLimit=256M CPUQuota=50% [Install] diff --git a/debian/rules b/debian/rules index 3973aa6..a4def83 100755 --- a/debian/rules +++ b/debian/rules @@ -15,4 +15,6 @@ 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 \ No newline at end of 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 diff --git a/src/main.rs b/src/main.rs index 391d175..c4d647c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,14 +8,6 @@ const SIMPLE_FRONTEND: &str = r#" No - - - - - - - -