1
+ # If you are using Docker, set DOCKER=true
1
2
DOCKER = true
2
3
4
+ # MongoDB URL: Connection string for your MongoDB database
3
5
MONGODB_URL = mongodb://127.0.0.1:27017/mydrive
4
6
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
6
10
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)
7
16
FS_DIRECTORY = /data/
8
- TEMP_DIRECTORY = /temp/
9
17
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.
10
27
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
11
35
PASSWORD_ACCESS = secretaccesspassword
12
36
PASSWORD_REFRESH = secretrefreshpassword
13
37
PASSWORD_COOKIE = secretcookiepassword
14
38
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
15
42
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/
16
52
TEMP_VIDEO_THUMBNAIL_LIMIT = 5000000000
17
53
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
22
56
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
24
60
HTTP_PORT =
25
61
HTTPS_PORT =
26
62
63
+ # URL (optional): The URL to run the server on.
64
+ # Most likely not needed, this changes the ip address/url express listens on.
27
65
URL =
28
66
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
30
72
EMAIL_VERIFICATION =
31
73
EMAIL_DOMAIN =
32
74
EMAIL_ADDRESS =
33
75
EMAIL_API_KEY =
34
76
EMAIL_HOST =
35
-
36
77
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
37
82
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;
38
89
SSL =
39
90
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