aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-23 00:09:30 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-23 00:09:30 +0100
commit50fb488baa7e7a54a6e8aadc71a5314c25bf0355 (patch)
tree228a6b9fb767a4009e22cca6652edf9e0ea52df8
parent1d5640c009dd993969c9aba749ecbbd2efe1b634 (diff)
downloadgnix-50fb488baa7e7a54a6e8aadc71a5314c25bf0355.tar
gnix-50fb488baa7e7a54a6e8aadc71a5314c25bf0355.tar.bz2
gnix-50fb488baa7e7a54a6e8aadc71a5314c25bf0355.tar.zst
license notices everywhere
-rw-r--r--COPYING2
-rw-r--r--src/certs.rs5
-rw-r--r--src/config.rs5
-rw-r--r--src/error.rs5
-rw-r--r--src/h3_support.rs5
-rw-r--r--src/main.rs5
-rw-r--r--src/modules/accesslog.rs5
-rw-r--r--src/modules/auth/basic.rs5
-rw-r--r--src/modules/auth/cookie.rs5
-rw-r--r--src/modules/auth/mod.rs5
-rw-r--r--src/modules/auth/openid.rs5
-rw-r--r--src/modules/cache.rs5
-rw-r--r--src/modules/cgi.rs5
-rw-r--r--src/modules/debug.rs5
-rw-r--r--src/modules/delay.rs5
-rw-r--r--src/modules/error.rs5
-rw-r--r--src/modules/fallback.rs5
-rw-r--r--src/modules/file.rs5
-rw-r--r--src/modules/files.rs5
-rw-r--r--src/modules/headers.rs5
-rw-r--r--src/modules/hosts.rs5
-rw-r--r--src/modules/inspect.rs5
-rw-r--r--src/modules/limits.rs5
-rw-r--r--src/modules/loadbalance.rs5
-rw-r--r--src/modules/mod.rs5
-rw-r--r--src/modules/paths.rs5
-rw-r--r--src/modules/proxy.rs5
-rw-r--r--src/modules/redirect.rs5
-rw-r--r--src/modules/switch.rs5
-rw-r--r--src/modules/upgrade_insecure.rs5
30 files changed, 146 insertions, 1 deletions
diff --git a/COPYING b/COPYING
index 8f18ba1..e33c5ca 100644
--- a/COPYING
+++ b/COPYING
@@ -1,5 +1,5 @@
gnix - a simple stupid reverse proxy
-Copyright (C) 2023 metamuffin
+Copyright (C) 2025 metamuffin
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
diff --git a/src/certs.rs b/src/certs.rs
index 09a8621..e75d5e0 100644
--- a/src/certs.rs
+++ b/src/certs.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use anyhow::{anyhow, Context, Result};
use log::debug;
use rustls::{
diff --git a/src/config.rs b/src/config.rs
index 8a19a53..5f925ea 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use crate::{
modules::{Node, NodeKind},
State,
diff --git a/src/error.rs b/src/error.rs
index d988ffa..1c6beb1 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
#[derive(Debug, thiserror::Error)]
pub enum ServiceError {
#[error("no response generated; the proxy is misconfigured")]
diff --git a/src/h3_support.rs b/src/h3_support.rs
index 56286db..9c17c25 100644
--- a/src/h3_support.rs
+++ b/src/h3_support.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use crate::error::ServiceError;
use bytes::{Buf, Bytes};
use h3::server::RequestStream;
diff --git a/src/main.rs b/src/main.rs
index b39eea7..af9c30b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
#![feature(
try_trait_v2,
slice_split_once,
diff --git a/src/modules/accesslog.rs b/src/modules/accesslog.rs
index ff9e6bb..c41d4fb 100644
--- a/src/modules/accesslog.rs
+++ b/src/modules/accesslog.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use futures::Future;
diff --git a/src/modules/auth/basic.rs b/src/modules/auth/basic.rs
index fb8301a..4b10a47 100644
--- a/src/modules/auth/basic.rs
+++ b/src/modules/auth/basic.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use crate::{
config::DynNode,
error::ServiceError,
diff --git a/src/modules/auth/cookie.rs b/src/modules/auth/cookie.rs
index 8e6d1d6..4c4d96d 100644
--- a/src/modules/auth/cookie.rs
+++ b/src/modules/auth/cookie.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use crate::{
config::{return_true, DynNode},
error::ServiceError,
diff --git a/src/modules/auth/mod.rs b/src/modules/auth/mod.rs
index 32dd0f2..ad9dd99 100644
--- a/src/modules/auth/mod.rs
+++ b/src/modules/auth/mod.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use argon2::PasswordVerifier;
use argon2::{
password_hash::{Encoding, PasswordHashString},
diff --git a/src/modules/auth/openid.rs b/src/modules/auth/openid.rs
index e22bc24..a6a6288 100644
--- a/src/modules/auth/openid.rs
+++ b/src/modules/auth/openid.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use crate::{
config::DynNode,
error::ServiceError,
diff --git a/src/modules/cache.rs b/src/modules/cache.rs
index 8d77086..f5cd72d 100644
--- a/src/modules/cache.rs
+++ b/src/modules/cache.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
//! Response caching module
//!
//! Considerations:
diff --git a/src/modules/cgi.rs b/src/modules/cgi.rs
index d54ec9d..bd19395 100644
--- a/src/modules/cgi.rs
+++ b/src/modules/cgi.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeKind, NodeResponse};
use crate::error::ServiceError;
use anyhow::{anyhow, Result};
diff --git a/src/modules/debug.rs b/src/modules/debug.rs
index 42d023a..5802881 100644
--- a/src/modules/debug.rs
+++ b/src/modules/debug.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::error::ServiceError;
use futures::Future;
diff --git a/src/modules/delay.rs b/src/modules/delay.rs
index ab46a90..5b5ce06 100644
--- a/src/modules/delay.rs
+++ b/src/modules/delay.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use anyhow::Result;
diff --git a/src/modules/error.rs b/src/modules/error.rs
index 3e4cc79..6e895d0 100644
--- a/src/modules/error.rs
+++ b/src/modules/error.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::error::ServiceError;
use futures::Future;
diff --git a/src/modules/fallback.rs b/src/modules/fallback.rs
index 63e82d4..ef3d741 100644
--- a/src/modules/fallback.rs
+++ b/src/modules/fallback.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use anyhow::Result;
diff --git a/src/modules/file.rs b/src/modules/file.rs
index 74be40d..0a03179 100644
--- a/src/modules/file.rs
+++ b/src/modules/file.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::error::ServiceError;
use futures::Future;
diff --git a/src/modules/files.rs b/src/modules/files.rs
index bc458b0..6a00249 100644
--- a/src/modules/files.rs
+++ b/src/modules/files.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::return_true, ServiceError};
use bytes::{Bytes, BytesMut};
diff --git a/src/modules/headers.rs b/src/modules/headers.rs
index 906d816..3d0a238 100644
--- a/src/modules/headers.rs
+++ b/src/modules/headers.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use anyhow::Result;
diff --git a/src/modules/hosts.rs b/src/modules/hosts.rs
index 20c6c85..e747e64 100644
--- a/src/modules/hosts.rs
+++ b/src/modules/hosts.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use futures::Future;
diff --git a/src/modules/inspect.rs b/src/modules/inspect.rs
index a31e3e3..c9b3abc 100644
--- a/src/modules/inspect.rs
+++ b/src/modules/inspect.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use anyhow::Result;
diff --git a/src/modules/limits.rs b/src/modules/limits.rs
index 7ae5fc9..dcfc508 100644
--- a/src/modules/limits.rs
+++ b/src/modules/limits.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use anyhow::Result;
diff --git a/src/modules/loadbalance.rs b/src/modules/loadbalance.rs
index d1a4a09..8a93e69 100644
--- a/src/modules/loadbalance.rs
+++ b/src/modules/loadbalance.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
//! Load balancing module
//!
//! Given a set of handlers, the handler that is the least busy will handle the next request.
diff --git a/src/modules/mod.rs b/src/modules/mod.rs
index c9a7708..21b0b4f 100644
--- a/src/modules/mod.rs
+++ b/src/modules/mod.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use crate::error::ServiceError;
use crate::State;
use bytes::Bytes;
diff --git a/src/modules/paths.rs b/src/modules/paths.rs
index 30e58cf..38cdf4b 100644
--- a/src/modules/paths.rs
+++ b/src/modules/paths.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use futures::Future;
diff --git a/src/modules/proxy.rs b/src/modules/proxy.rs
index c219647..2d6b254 100644
--- a/src/modules/proxy.rs
+++ b/src/modules/proxy.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::ServiceError;
use futures::Future;
diff --git a/src/modules/redirect.rs b/src/modules/redirect.rs
index 1dc90af..ef9115b 100644
--- a/src/modules/redirect.rs
+++ b/src/modules/redirect.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::error::ServiceError;
use anyhow::Result;
diff --git a/src/modules/switch.rs b/src/modules/switch.rs
index 466bdd8..0cc013c 100644
--- a/src/modules/switch.rs
+++ b/src/modules/switch.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use anyhow::Result;
diff --git a/src/modules/upgrade_insecure.rs b/src/modules/upgrade_insecure.rs
index 7cd17a4..e284df0 100644
--- a/src/modules/upgrade_insecure.rs
+++ b/src/modules/upgrade_insecure.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of gnix (https://codeberg.org/metamuffin/gnix)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2025 metamuffin <metamuffin.org>
+*/
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use anyhow::Result;