Skip to content

Commit 1e1f7c8

Browse files
chore: one
1 parent dfe5ac8 commit 1e1f7c8

File tree

1 file changed

+66
-11
lines changed

1 file changed

+66
-11
lines changed

.env.example

Lines changed: 66 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,96 @@
1+
# If you are using Docker, set DOCKER=true
12
DOCKER=true
23

4+
# MongoDB URL: Connection string for your MongoDB database
35
MONGODB_URL=mongodb://127.0.0.1:27017/mydrive
46

5-
# Directory paths need to end with a slash
7+
# Database Type: Choose between "fs" and "s3", this specifies where the files will be stored.
8+
# fs = Filesystem
9+
# s3 = Amazon S3
610
DB_TYPE=fs
11+
12+
# If using fs,
13+
# File Storage Directory: The directory where the files will be stored. Must be exact path.
14+
# PATH MUST END IN A SLASH
15+
# Example: /home/kyle/mydrive/ (must end in a slash)
716
FS_DIRECTORY=/data/
8-
TEMP_DIRECTORY=/temp/
917

18+
# If using s3,
19+
# S3 Data: The S3 bucket and key where the files will be stored.
20+
S3_ID=
21+
S3_KEY=
22+
S3_BUCKET=
23+
24+
# Encryiption Key (optional): The encryption key used to encrypt the files.
25+
# DO NOT LOSE OR FORGET THIS KEY AS ALL DATA WILL BE LOST IF YOU LOSE IT.
26+
# If you do not supply a key, the app will instead prompt you to type one into the terminal when you start the server.
1027
KEY=encryptionkey
28+
29+
# Access tokens, refresh, and cookie
30+
# These should be randomly generated in a secure manner.
31+
# If you lose these tokens, all users will be logged out.
32+
# You can also change these if you want to force all users to be logged out.
33+
# Each token should be a different string.
34+
# Example: sa4hQqJwGFLC1LJk59
1135
PASSWORD_ACCESS=secretaccesspassword
1236
PASSWORD_REFRESH=secretrefreshpassword
1337
PASSWORD_COOKIE=secretcookiepassword
1438

39+
# Video thumbnails (optional): If you want to enable video thumbnails, configure as so.
40+
# Video thumbnail generation relies on ffmpeg, please ensure you have it installed.
41+
# VIDEO_THUMBNAILS_ENABLED=true
1542
VIDEO_THUMBNAILS_ENABLED=true
43+
44+
# Video thumbnails continued (optional):
45+
# Sometimes generating a video thumbnail will fail with the default method.
46+
# If so you can choose to instead temporarily store the video in a directory, and generate a thumbnail from that.
47+
# WARNING: The file will be temporarily stored in this directory UNENCRYPTED.
48+
# Temp directory example: /Users/kyle/mydrive/temp/ (must end in a slash)
49+
# Temp video thumbnail limit: The maximum size of a video thumbnail in bytes.
50+
# Example: 5000000000
51+
TEMP_DIRECTORY=/temp/
1652
TEMP_VIDEO_THUMBNAIL_LIMIT=5000000000
1753

18-
# S3
19-
S3_ID=
20-
S3_KEY=
21-
S3_BUCKET=
54+
# Block account creation (optional): If you want to block account creation, configure as so, but after you create an account.
55+
BLOCK_CREATE_ACCOUNT=false
2256

23-
# Change app internal ports
57+
# Ports (optional): The ports to run the server on.
58+
# HTTP_PORT: Default port is 3000
59+
# HTTPS_PORT: Default port is 8080
2460
HTTP_PORT=
2561
HTTPS_PORT=
2662

63+
# URL (optional): The URL to run the server on.
64+
# Most likely not needed, this changes the ip address/url express listens on.
2765
URL=
2866

29-
# Email
67+
# Email verifcation (optional): If you want to enable email verification configure as so.
68+
# EMAIL_VERIFICATION=true
69+
# Remote URL: This refers to the URL sent in the verification email: Example https://mydrive-storage.com
70+
# Please navigate to the following link to verify your email address: {REMOTE_URL}/verify
71+
# Should NOT end with a slash
3072
EMAIL_VERIFICATION=
3173
EMAIL_DOMAIN=
3274
EMAIL_ADDRESS=
3375
EMAIL_API_KEY=
3476
EMAIL_HOST=
35-
3677
REMOTE_URL=
78+
79+
# Marks cookie generation as secure (Optional)
80+
# This is recommended and should be enabled if you are running the app on HTTPS.
81+
# SECURE_COOKIES=true
3782
SECURE_COOKIES=
83+
84+
85+
# SSL (Optional): If you want to enable SSL, configure as so.
86+
# SSL=true
87+
# Place your SSL certificate files in the root directory of the project
88+
# With the names: certificate.crt, certificate.key, and certificate.ca-bundle;
3889
SSL=
3990

40-
# Block account creation. Do this after creating the required accounts
41-
BLOCK_CREATE_ACCOUNT=true
91+
# HTTPS cert paths (optional): If you need to change the paths of the https certs
92+
# You can do so with these env variables.
93+
# By default myDrive looks for certificate.crt, certificate.ca-bundle and certificate.key on the root of the project
94+
HTTPS_KEY_PATH=
95+
HTTPS_CA_PATH=
96+
HTTPS_CRT_PATH=

0 commit comments

Comments
 (0)