-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.js
More file actions
19 lines (18 loc) · 1.15 KB
/
config.js
File metadata and controls
19 lines (18 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const config = {
port: 1200, // Server port
baseURL: "http://localhost:1200", // Base url
securityLevel: 2, // Security levels | Level 0: Security system is disabled | Level 1: Trusted domains are allowed to access | Level 2: Domain must be trusted domain and have access key
trustedDomains: ["https://example.com", "http://localhost:1200"], // Trusted domain list
authKey: "vsldev.tk", // Access key for uploading
uploadOnly: ["image/"], // You can use 'video/' and 'audio/' for other types of files or type ['all'] for all type of files .exe, .txt and more
convertImagesTo: "webp", // You can change the type of the image with this and make them all the same. You can set the format you want, such as jpg, jpeg or png, if you do not want the format of the file to change, just type 'default'
uploadLimit: 100, // File limit
sizeLimit: 104857600, // Max file size limit for uploading ( Default: 100mb )
logs: false, // File upload and delete logs to logs.txt
panel: {
panelEnabled: false, // Enable disable admin panel
username: "admin", // Admin panel username
password: "admin", // Admin panel password
},
};
module.exports = config;