meta: prepare for publishing
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I02ee54baee048c58a480522ce79159eb6a6a6964
This commit is contained in:
parent
b1f3b4b1ff
commit
265a30d3c8
18 changed files with 102 additions and 78 deletions
|
|
@ -3,9 +3,12 @@ members = [ "crates/*", "ncro" ]
|
||||||
resolver = "3"
|
resolver = "3"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
edition = "2024"
|
description = "Nix Cache Route Optimizer"
|
||||||
license = "EUPL-1.2"
|
edition = "2024"
|
||||||
version = "2.0.0"
|
homepage = "https://github.com/notashelf/ncro"
|
||||||
|
license = "EUPL-1.2"
|
||||||
|
repository = "https://github.com/notashelf/ncro"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
# Workspace components
|
# Workspace components
|
||||||
|
|
|
||||||
|
|
@ -1,39 +1,39 @@
|
||||||
[server]
|
[server]
|
||||||
listen = ":8080"
|
listen = ":8080"
|
||||||
read_timeout = "30s"
|
read_timeout = "30s"
|
||||||
write_timeout = "30s"
|
write_timeout = "30s"
|
||||||
|
|
||||||
[[upstreams]]
|
[[upstreams]]
|
||||||
url = "https://cache.nixos.org"
|
priority = 10
|
||||||
priority = 10
|
|
||||||
public_key = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
public_key = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
|
url = "https://cache.nixos.org"
|
||||||
|
|
||||||
# Try without a public key.
|
# Try without a public key.
|
||||||
[[upstreams]]
|
[[upstreams]]
|
||||||
url = "https://nix-community.cachix.org"
|
|
||||||
priority = 20
|
priority = 20
|
||||||
|
url = "https://nix-community.cachix.org"
|
||||||
|
|
||||||
[cache]
|
[cache]
|
||||||
db_path = "/var/lib/ncro/routes.db"
|
db_path = "/var/lib/ncro/routes.db"
|
||||||
max_entries = 100000
|
|
||||||
ttl = "1h"
|
|
||||||
negative_ttl = "10m"
|
|
||||||
latency_alpha = 0.3
|
latency_alpha = 0.3
|
||||||
|
max_entries = 100000
|
||||||
|
negative_ttl = "10m"
|
||||||
|
ttl = "1h"
|
||||||
|
|
||||||
[discovery]
|
[discovery]
|
||||||
enabled = false
|
|
||||||
service_name = "_nix-serve._tcp"
|
|
||||||
domain = "local"
|
|
||||||
discovery_time = "5s"
|
discovery_time = "5s"
|
||||||
priority = 20
|
domain = "local"
|
||||||
|
enabled = false
|
||||||
|
priority = 20
|
||||||
|
service_name = "_nix-serve._tcp"
|
||||||
|
|
||||||
[mesh]
|
[mesh]
|
||||||
enabled = false
|
bind_addr = "0.0.0.0:7946"
|
||||||
bind_addr = "0.0.0.0:7946"
|
enabled = false
|
||||||
peers = []
|
|
||||||
private_key = "/etc/ncro/node.key"
|
|
||||||
gossip_interval = "30s"
|
gossip_interval = "30s"
|
||||||
|
peers = [ ]
|
||||||
|
private_key = "/etc/ncro/node.key"
|
||||||
|
|
||||||
[logging]
|
[logging]
|
||||||
level = "info"
|
|
||||||
format = "json"
|
format = "json"
|
||||||
|
level = "info"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ncro-config"
|
name = "ncro-config"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
publish = false
|
description.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
hex.workspace = true
|
hex.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ncro-db"
|
name = "ncro-db"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
publish = false
|
description.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = { workspace = true, features = [ "serde" ] }
|
chrono = { workspace = true, features = [ "serde" ] }
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ncro-discovery"
|
name = "ncro-discovery"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
publish = false
|
description.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow.workspace = true
|
anyhow.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ncro-health"
|
name = "ncro-health"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
publish = false
|
description.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ncro-mesh"
|
name = "ncro-mesh"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
publish = false
|
description.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono.workspace = true
|
chrono.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ncro-metrics"
|
name = "ncro-metrics"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
publish = false
|
description.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
prometheus.workspace = true
|
prometheus.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ncro-narinfo"
|
name = "ncro-narinfo"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
publish = false
|
description.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64.workspace = true
|
base64.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ncro-router"
|
name = "ncro-router"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
publish = false
|
description.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono.workspace = true
|
chrono.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ncro-server"
|
name = "ncro-server"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
publish = false
|
description.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
axum = { workspace = true, features = [ "macros" ] }
|
axum = { workspace = true, features = [ "macros" ] }
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ncro"
|
name = "ncro"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
|
description.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow.workspace = true
|
anyhow.workspace = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue