AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
My drive1/12/2024 ![]() DOCUMENT_DB_BUNDLE (Optional): Enables SSL with documentDB, set this to 'true'.SENDGRID_KEY (optional): This is the sendgrid API key.This is the email address users will see when they need to verify their account, or reset their password. SENDGRID_EMAIL (optional): If you are using email verification it is done through sendgrid, enter the sendgrid email address you would like to use.Also will not allow users to reset their password with an email. DISABLE_EMAIL_VERIFICATION (optional): Disabled email verification when creating an account.USE_DOCUMENT_DB (Optional): Enables documentDB, this is experimental, set this to 'true'.URL (Optional): Allows to specify URL to host on, this is usually not needed.ROOT (Optional): Uses a filesystem path, is used for storage space.S3_BUCKET (Optional/Required): Sets the Amazon Bucket. ![]() S3_KEY (Optional/Required): Sets the Amazon S3 Key.S3_ID (Optional/Required): Sets the Amazon S3 ID.FS_DIRECTORY (Optional/Required): Sets the directory for file data on the file system.DOCKER (Optional/Required): Sets the server to use docker, set this to 'true'.KEY (Optional): Encryption key for data, this is not recommended, please use the built in webUI for setting the key.Choose this option only if you are using HTTPS. SECURE_COOKIES (Optional): Makes cookies secure, which means they can only be sent with HTTPS/SSL.SSL (Optional): Enables SSL, place certificate.crt, certificate.ca-bundle, and certificate.key at the root of the project.NODE_ENV (Required): Must be set to 'production'.DB_TYPE (Required): Sets the Database Type, options include s3/mongo/fs.PASSWORD_COOKIE (Required): Sets the secret for cookies.PASSWORD_REFRESH (Required): Sets the JWT secret for refresh tokens.PASSWORD_ACCESS (Required): Sets the JWT secret for access tokens.This is needed for things like the Google Drive redirect URL, and including the URL when sending email verification/password reset emails. REMOTE_URL (Required): This is the URL that the client navigates to in their browser in order to access myDrive.HTTPS_PORT (Required): Sets the HTTPS port number.HTTP_PORT (Required): Sets the HTTP port number.MONGODB_URL (Required): Sets the MongoDB URL, this should also work with DocumentDB.You must also include DOCKER=true in the servers environment variables. env.production file in the root of the project.ĭocker: If you're using Docker, instead create a file named 'docker-variables.env' on the root of the project. You can easily create environment variables using the built in setup tool 'npm run setup', or manually create the files.Ĭreate a config folder on the root of the project, and create a file with the name prod.env for the server. If successful you should see in the terminal the number of users that has their tokens removed, if you run into any errors check your environment variables and make sure the project is built properly. Linux users will need to make sure they have 'build-essential' installed: These are required to build the sharp module: Windows users will usually need both the microsoft visual build tools, and python 2. MongoDB (Unless using a service like Atlas).Multiple DB Support (MongoDB, S3, Filesystem).Updating from a previous version of myDrive.Go to the main myDrive website for more infomation, screenshots, and more. The service now even supports Docker images! MyDrive is built using Node.js, and Typescript. MyDrive uses mongoDB to store file/folder metadata, and supports multiple databases to store the file chunks, such as Amazon S3, the Filesystem, or just MongoDB. Host myDrive on your own server or trusted platform and then access myDrive through your web browser. MyDrive is an Open Source cloud file storage server (Similar To Google Drive).
0 Comments
Read More
Leave a Reply. |