1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-15 17:50:57 +00:00
Commit graph

78 commits

Author SHA1 Message Date
Charlotte 🦝 Delenk
fb77c7eb2b
config.rs: Add env variable for db url 2023-01-15 18:38:28 +01:00
Zhaofeng Li
fb1101f54d server/upload-path: Set completeness hint when NAR is deduplicated 2023-01-14 23:55:11 -07:00
Zhaofeng Li
e8f9f3c04b Add support for chunking 2023-01-14 23:55:10 -07:00
Zhaofeng Li
93a38d1b1e Move read_chunk_async to attic 2023-01-14 23:55:10 -07:00
Zhaofeng Li
5a8df0b1e8 server/upload_path: Refactor 2023-01-14 23:55:10 -07:00
Zhaofeng Li
6d3d07cb14 server/adm: Make --config/-f a global option 2023-01-14 23:55:10 -07:00
Zhaofeng Li
064a747bb4 server/upload_path: Expose the final file size in the response 2023-01-14 23:55:10 -07:00
Zhaofeng Li
3d1961c0ab server: Allow setting an alternative substituter endpoint 2023-01-08 23:00:53 -07:00
Zhaofeng Li
c4f843d4ab server: rustfmt
poke ci
2023-01-08 02:44:45 -07:00
Zhaofeng Li
05a5e9cca8 server: Set a custom header if the cache is public
This can be used as a signal to improve caching. Only done for
the Nix Binary Cache APIs for now.
2023-01-08 00:57:22 -07:00
Zhaofeng Li
6c4d04da74 Migrate to jwt-simple 2023-01-08 00:57:22 -07:00
Zhaofeng Li
eb34b8ee99 attic: Allow disabling tokio
Not needed at all for parsing usecases.
2023-01-08 00:57:22 -07:00
Zhaofeng Li
77070b9895 Refactor token into a separate crate 2023-01-08 00:57:22 -07:00
Zhaofeng Li
b0471c6804 server/config: Support loading HS256 JWT secret from environment variable 2023-01-06 00:59:35 -07:00
Zhaofeng Li
82fb6682d7 Consolidate config loading logic 2023-01-06 00:59:35 -07:00
Zhaofeng Li
f1ada7595b server/gc: Fix subquery table locking on Postgres
We definitely need more tests :(
2023-01-06 00:59:35 -07:00
Zhaofeng Li
7b53ce15cd api/v1/upload-path: Inform the client whether the uploaded path is deduplicated 2023-01-04 21:05:07 -07:00
Zhaofeng Li
a7578d1896 server: Allow disabling proof of possession 2023-01-04 21:05:07 -07:00
Zhaofeng Li
69366cbe97 Run rustfmt 2023-01-04 21:05:07 -07:00
Zhaofeng Li
c04aff7c48 server: Attach tracing context to errors 2023-01-04 21:05:07 -07:00
Zhaofeng Li
27836028f4 server: Rename RemoteFileError to StorageError
Already renamed everywhere else.
2023-01-04 21:05:07 -07:00
Zhaofeng Li
14d8b8f1b0 server/s3: Fix loading of AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY 2023-01-04 21:05:07 -07:00
Zhaofeng Li
3fd587315f server: Record uploader JWT subject in objects 2023-01-04 21:05:07 -07:00
Zhaofeng Li
b25ae9f777 server/error: Log certain errors on error level 2023-01-02 23:29:09 -07:00
Zhaofeng Li
49f2ccbff8 server/adm: Also honor ATTIC_SERVER_CONFIG_BASE64 2023-01-01 20:59:02 -07:00
Zhaofeng Li
0c1f362a62 server: Add --mode check-config 2023-01-01 20:59:02 -07:00
Zhaofeng Li
a3636339e0 Update comments to reflect actual implementation 2023-01-01 20:59:02 -07:00
Zhaofeng Li
5aa1623dc2 Initial public commit 2022-12-31 17:01:07 -07:00