@akashnetwork/lfs
v0.0.1
Published
Fastify GIT LFS Server
Downloads
8
Keywords
Readme
Fastify GIT LFS
Use use git
to manage your static files and offload them to a large binary provider.
Supported
- Git LFS v1 Batch API
- JWT to secure
download
,upload
Coming Soon
- Basic Authentication with SSH Support.
How to Use
Setup
Install the Git Large File Support Addon. This addon allows the git client, to offload the images in the git repository, to an external location.
Add trackable binary files (creates a .gitattributes
to commit to repo)
git lfs track "*.png"
Create a .lfsconfig
file in the root of your repository, point it to our open SiaSky uploader, or to a self hosted version if you prefer.
[lfs]
url = "https://localhost:3000/:githubOrg/:githubRepository"
Start the LFS server locally (or connect to one in the cloud)
npx @dmikey/fastify-git-lfs
Commit files like normal
git add image.png
git commit -m "adding the image"
git push
Images are automatically uploaded to Skynet as the default store, and placeholders are commited to your repository.
version https://git-lfs.github.com/spec/v1
oid sha256:a480292a083cffbae4602079113e3b6ed8e7ed24ffabda282eb2054460ad7325
size 65898
Your files are now stored on Skynet. To continue working with your files locally, use git lfs
!
git checkout branch
git lfs fetch
git lfs checkout
Your images are downloaded from Skynet, and the pointer files are updated locally.
No Verification
Why? Because git lfs doesn't use it to prevent commit. If a server responds 200 to an upload, git lfs is hitting verification for the benefit of the server. When this changes, verification will be enabled.
Thank you for the original implimentation
https://github.com/kzwang/node-git-lfs