Merge branch 'new-attic'
This commit is contained in:
commit
47d703d9d1
4 changed files with 28 additions and 18 deletions
|
@ -7,32 +7,26 @@
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
listen = "[::]:8090";
|
listen = "[::]:8090";
|
||||||
api-endpoint = "https://cache.cything.io/";
|
api-endpoint = "https://cache.cy7.sh/";
|
||||||
allowed-hosts = [ "cache.cything.io" ];
|
allowed-hosts = [ "cache.cy7.sh" ];
|
||||||
require-proof-of-possession = false;
|
require-proof-of-possession = false;
|
||||||
compression.type = "zstd";
|
compression.type = "zstd";
|
||||||
database.url = "postgresql:///atticd?host=/run/postgresql";
|
database.url = "postgresql:///atticd?host=/run/postgresql";
|
||||||
|
|
||||||
storage = {
|
storage = {
|
||||||
type = "local";
|
type = "s3";
|
||||||
path = "/mnt/attic";
|
region = "auto";
|
||||||
|
bucket = "attic";
|
||||||
|
endpoint = "https://e3e97aac307d106a7becea43cef8fcbd.r2.cloudflarestorage.com";
|
||||||
};
|
};
|
||||||
|
|
||||||
garbage-collection = {
|
garbage-collection = {
|
||||||
default-retention-period = "3 months";
|
default-retention-period = "2 weeks";
|
||||||
};
|
|
||||||
|
|
||||||
chunking = {
|
|
||||||
nar-size-threshold = 0; # disables chunking
|
|
||||||
min-size = 0;
|
|
||||||
avg-size = 0;
|
|
||||||
max-size = 0;
|
|
||||||
concurrent-chunk-uploads = 32;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."cache.cything.io".extraConfig = ''
|
services.caddy.virtualHosts."cache.cy7.sh".extraConfig = ''
|
||||||
import common
|
import common
|
||||||
reverse_proxy localhost:8090
|
reverse_proxy localhost:8090
|
||||||
'';
|
'';
|
||||||
|
|
13
overlay/attic/concurrent-32.patch
Normal file
13
overlay/attic/concurrent-32.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/server/src/config.rs b/server/src/config.rs
|
||||||
|
index 4412cbf..6dd483a 100644
|
||||||
|
--- a/server/src/config.rs
|
||||||
|
+++ b/server/src/config.rs
|
||||||
|
@@ -565,7 +565,7 @@ fn default_default_retention_period() -> Duration {
|
||||||
|
}
|
||||||
|
|
||||||
|
fn default_concurrent_chunk_uploads() -> usize {
|
||||||
|
- 10
|
||||||
|
+ 32
|
||||||
|
}
|
||||||
|
|
||||||
|
fn load_config_from_path(path: &Path) -> Result<Config> {
|
|
@ -16,6 +16,9 @@ final: prev: {
|
||||||
cargoLock = null;
|
cargoLock = null;
|
||||||
cargoHash = "sha256-AbpWnYfBMrR6oOfy2LkQvIPYsClCWE89bJav+iHTtLM=";
|
cargoHash = "sha256-AbpWnYfBMrR6oOfy2LkQvIPYsClCWE89bJav+iHTtLM=";
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
|
patches = [
|
||||||
|
./concurrent-32.patch
|
||||||
|
];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue