mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 13:11:46 +08:00
34 lines
1.2 KiB
JavaScript
34 lines
1.2 KiB
JavaScript
// GOOGLE DRIVE
|
|
// 1) enable the api: https://console.developers.google.com/apis/api/drive.googleapis.com/overview
|
|
// 2) create credentials: https://console.developers.google.com/apis/credentials/oauthclient
|
|
|
|
// DROPBOX
|
|
// 1) create an third party app: https://www.dropbox.com/developers/apps/create
|
|
// -> dropbox api -> "Full Dropbox" or "App folder" -> whatever name you want ->
|
|
// -> set redirect URI to https://example.com/login ->
|
|
|
|
module.exports = {
|
|
// SERVER CONFIG
|
|
info: {
|
|
host: process.env.APPLICATION_URL || "http://nuage.kerjean.me",
|
|
usage_stats: true
|
|
},
|
|
gdrive: {
|
|
redirectURI: process.env.APPLICATION_URL+"/login",
|
|
clientID: process.env.GDRIVE_CLIENT_ID,
|
|
clientSecret: process.env.GDRIVE_CLIENT_SECRET
|
|
},
|
|
dropbox: {
|
|
clientID: process.env.DROPBOX_CLIENT_ID,
|
|
redirectURI: process.env.APPLICATION_URL+"/login"
|
|
},
|
|
transcoder: {
|
|
url: process.env.TRANSCODER_URL || null,
|
|
audio_bitrate: 128, // in kbps
|
|
audio_quality: 0,
|
|
video_codec: 'libx264',
|
|
video_bitrate: 1000 // in kbps
|
|
},
|
|
secret_key: process.env.SECRET_KEY || (Math.random()*Math.pow(10,16)).toString(32)
|
|
};
|