mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 20:23:32 +08:00
improvement (default config): default value on config that make sense
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
module.exports = {
|
||||
// SERVER CONFIG
|
||||
info: {
|
||||
host: "application_url",
|
||||
host: process.env.APPLICATION_URL || "http://nuage.kerjean.me",
|
||||
usage_stats: true
|
||||
},
|
||||
gdrive: {
|
||||
@ -22,5 +22,5 @@ module.exports = {
|
||||
clientID: process.env.DROPBOX_CLIENT_ID,
|
||||
redirectURI: process.env.APPLICATION_URL+"/login"
|
||||
},
|
||||
secret_key: process.env.SECRET_KEY || 'not_so_secret_key'
|
||||
secret_key: process.env.SECRET_KEY || (Math.random()*Math.pow(10,16)).toString(32)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user