Added tppBind

This commit is contained in:
Alois 2026-05-16 19:01:47 +02:00
commit 72ef0542e8
3 changed files with 15 additions and 9 deletions

4
Cargo.lock generated
View file

@ -3450,7 +3450,7 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
[[package]] [[package]]
name = "ttp-core" name = "ttp-core"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.methanium.net/Tensamin/TTP.git#929cb9d3a6aebebe6365973f13062ac2a8e03af6" source = "git+https://git.methanium.net/Tensamin/TTP.git#7e5d1953df8592a1feba0f390d205d0ef61a3119"
dependencies = [ dependencies = [
"base64 0.22.1", "base64 0.22.1",
"byteorder", "byteorder",
@ -3463,7 +3463,7 @@ dependencies = [
[[package]] [[package]]
name = "ttp-native" name = "ttp-native"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.methanium.net/Tensamin/TTP.git#929cb9d3a6aebebe6365973f13062ac2a8e03af6" source = "git+https://git.methanium.net/Tensamin/TTP.git#7e5d1953df8592a1feba0f390d205d0ef61a3119"
dependencies = [ dependencies = [
"quinn", "quinn",
"rustls", "rustls",

11
flake.lock generated
View file

@ -59,16 +59,15 @@
"ttp": { "ttp": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1778329030, "lastModified": 1778948017,
"narHash": "sha256-qEEPlOuGVco1g6lI/kfEvIZkJmBbjehuchGWPTywR10=", "narHash": "sha256-hqBYSZnPq7f/F2Z6nJK+6a8ITk6WRCcVBcNT0CR6SnM=",
"ref": "refs/heads/main", "rev": "7e5d1953df8592a1feba0f390d205d0ef61a3119",
"rev": "929cb9d3a6aebebe6365973f13062ac2a8e03af6", "revCount": 117,
"revCount": 115,
"type": "git", "type": "git",
"url": "https://git.methanium.net/Tensamin/TTP.git" "url": "https://git.methanium.net/Tensamin/TTP.git"
}, },
"original": { "original": {
"rev": "929cb9d3a6aebebe6365973f13062ac2a8e03af6", "rev": "7e5d1953df8592a1feba0f390d205d0ef61a3119",
"type": "git", "type": "git",
"url": "https://git.methanium.net/Tensamin/TTP.git" "url": "https://git.methanium.net/Tensamin/TTP.git"
} }

View file

@ -5,7 +5,7 @@
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
ttp = { ttp = {
url = "git+https://git.methanium.net/Tensamin/TTP.git?rev=929cb9d3a6aebebe6365973f13062ac2a8e03af6"; url = "git+https://git.methanium.net/Tensamin/TTP.git?rev=7e5d1953df8592a1feba0f390d205d0ef61a3119";
flake = false; flake = false;
}; };
}; };
@ -94,6 +94,12 @@
description = "Port the Omikron server listens on for incoming QUIC connections."; description = "Port the Omikron server listens on for incoming QUIC connections.";
}; };
ttpBind = lib.mkOption {
type = lib.types.str;
default = "0.0.0.0";
description = "IP address to bind the TTP/QUIC server to.";
};
omegaHost = lib.mkOption { omegaHost = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "tensamin.net"; default = "tensamin.net";
@ -138,6 +144,7 @@
environment = { environment = {
RHO_PORT = toString cfg.rhoPort; RHO_PORT = toString cfg.rhoPort;
TTP_BIND = cfg.ttpBind;
OMEGA_HOST = cfg.omegaHost; OMEGA_HOST = cfg.omegaHost;
OMEGA_PORT = toString cfg.omegaPort; OMEGA_PORT = toString cfg.omegaPort;
}; };