Compare commits

..

No commits in common. "26df9abb22e6946494bd4255348e64e00cedded6" and "6fa16fa422fa02a8a3c65bd9a4825256366be8f3" have entirely different histories.

5 changed files with 11 additions and 16 deletions

View file

@ -7,7 +7,7 @@ env:
ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }}
NIX_CONFIG: |
show-trace = true
extra-substituters = https://cdn.cy7.sh/main
extra-substituters = https://cache.cy7.sh/main
extra-trusted-public-keys = main:Ku31HoEWcBtfggge2VGj+QTkVrQuIwRIMGyfV/5VQP0=
experimental-features = nix-command flakes
accept-flake-config = true

View file

@ -107,7 +107,7 @@
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://cdn.cy7.sh/main"
"https://cache.cy7.sh/main"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="

View file

@ -44,17 +44,15 @@
--config ${config.sops.secrets."rclone/config".path} \
--allow-other \
--cache-dir /var/cache/rclone \
--transfers 32 \
--transfers=32 \
--vfs-cache-mode full \
--vfs-cache-min-free-space 5G \
--dir-cache-time 30d \
--no-checksum \
--no-modtime \
--vfs-fast-fingerprint \
--vfs-read-chunk-size 4M \
--vfs-read-chunk-streams 64 \
--sftp-concurrency 128 \
--sftp-chunk-size 255k \
--vfs-read-chunk-size 10M \
--vfs-read-chunk-streams 32 \
rsyncnet:garage /mnt/garage
'';
ExecStop = "${lib.getExe' pkgs.fuse "fusermount"} -u /mnt/garage";

View file

@ -15,7 +15,7 @@
];
extra-substituters = [
"https://nix-community.cachix.org"
"https://cdn.cy7.sh/main"
"https://cache.cy7.sh/main"
];
};
channel.enable = false;

View file

@ -18,7 +18,7 @@ in
settings = {
listen = "[::]:8091";
api-endpoint = "https://cache.cy7.sh/";
allowed-hosts = [ "cache.cy7.sh" "cdn.cy7.sh" ];
allowed-hosts = [ "cache.cy7.sh" ];
require-proof-of-possession = false;
compression = {
type = "none";
@ -39,12 +39,9 @@ in
};
};
services.caddy.virtualHosts."cache.cy7.sh" = {
serverAliases = [ "cdn.cy7.sh" ];
extraConfig = ''
services.caddy.virtualHosts."cache.cy7.sh".extraConfig = ''
import common
reverse_proxy localhost:8091
'';
};
};
}