-
Notifications
You must be signed in to change notification settings - Fork 2
Server config
Guillem Arias edited this page Jun 21, 2018
·
3 revisions
Detailed configuration:
{
"server": {
"address": "", // The server address, can be empty for localhost
"port": 4000, // Server running port
"serveImages": true, // Whether or not to serve the images
"cors": { // Cross origin requests settings
"enabled": true,
"options": {
"origin": true
}
},
"publicDomain": "http://localhost:4000", // Public server endpoint
"allowRegistration": true,
"maxFileSize": "Infinite",
"clientPath": "$appdir/../client/dist" // Nethloader Web Frontend location
},
"security": {
"jwtSecret": "AAA" // Secret key for jwt API authentication
},
"storage": {
"imagesPath": "$appdir/images", // Where to store Nethloader uploaded files
"supportedExtensions": {
"image": ["png", "jpg", "jpeg", "svg", "webp"],
"video": ["mp4", "ogg", "webm", "gif"]
},
"unprocessableExtensions": ["webp", "webm", "svg"]
},
"database": { // Database configuration,
"username": "root",
"password": "123456",
"database": "nethloader",
"host": "localhost",
"port": 3306,
"dialect": "mysql"
}
}