0.0.1 • Published 10 years ago
node-git-lfs v0.0.1
Node Git LFS
A NodeJS implementation of Git LFS Server.
Installation
npm install node-git-lfsConfiguration
All configurations can be done via environment variable or configuration file
Environment Variables
LFS_BASE_URL- URL of the LFS server - requiredLFS_PORT- HTTP portal of the LFS server, default to3000- requiredLFS_STORE_TYPE- Object store type, can be eithers3(for AWS S3) orgrid(for MongoDB GridFS), default tos3- requiredLFS_AUTHENTICATOR_TYPE- Authenticator type, can bebasic(for basic username and password),none(for no authentication), default tonone- required
If storage type is s3:
AWS_ACCESS_KEY- AWS access key - requiredAWS_SECRET_KEY- AWS secret key - requiredLFS_STORE_S3_BUCKET- AWS S3 bucket - requiredLFS_STORE_S3_ENDPOINT- AWS S3 endpoint, normally this will be set by regionLFS_STORE_S3_REGION- AWS S3 region
If storage type is grid:
LFS_STORE_GRID_CONNECTION- MongoDB connection URL - required
If authenticator type is basic:
LFS_AUTHENTICATOR_USERNAME- Username - requiredLFS_AUTHENTICATOR_PASSWORD- Password - requiredLFS_AUTHENTICATOR_CLIENT_PUBLIC_KEY- Location of the client's public key
SSH Environment Variables
LFS_SSH_ENABLED- Enable SSH server, default totrueLFS_SSH_PORT- SSH server port, default to2222LFS_SSH_IP- SSH server bind IP, default to0.0.0.0LFS_SSH_PUBLIC_KEY- SSH server public keyLFS_SSH_PRIVATE_KEY- SSH server private key