X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2Fconfig%2Fparameters.js.dist;h=c0640cd6f3f71a7fad929ea94f2f27c3bf7994b6;hp=14c100a21305874cd94560b254e7b0cb126b735b;hb=a9e7935190d8fc112e674add05e86b8d0152e8df;hpb=f05815d7da84284bd9d7c1ce5b808acd675f2a3e diff --git a/server/config/parameters.js.dist b/server/config/parameters.js.dist index 14c100a2..c0640cd6 100644 --- a/server/config/parameters.js.dist +++ b/server/config/parameters.js.dist @@ -1,34 +1,36 @@ -module.exports = -{ - // For mail sending. NOTE: *no trailing slash* - siteURL: "http://localhost:8080", +module.exports = { + // For mail sending. NOTE: *no trailing slash* + siteURL: "http://localhost:8080", - // To know in which environment the code run - env: process.env.NODE_ENV || 'development', - - // CORS: cross-origin resource sharing options - cors: { - enable: true, - allowedOrigin: "*", - }, + // To know in which environment the code run + env: process.env.NODE_ENV || 'development', + + // CORS: cross-origin resource sharing options + cors: { + enable: true, + allowedOrigin: "http://localhost:8080", + }, - // Lifespan of a (login) cookie - cookieExpire: 183*24*60*60*1000, //6 months in milliseconds + // Lifespan of a (login) cookie + cookieExpire: 183*24*60*60*1000, //6 months in milliseconds - // Characters in a login token, and period of validity (in milliseconds) - token: { - length: 16, - expire: 30*60*1000, //30 minutes in milliseconds - }, + // Characters in a login token, and period of validity (in milliseconds) + token: { + length: 16, + expire: 30*60*1000, //30 minutes in milliseconds + }, - // Email settings - mail: { - host: "mail_host_address", - port: 465, //if secure; otherwise use 587 - secure: true, //...or false - user: "mail_user_name", - pass: "mail_password", - noreply: "some_noreply_email", - contact: "some_contact_email", - }, + // Email settings + mail: { + host: "mail_host_address", + port: 465, //if secure; otherwise use 587 + secure: true, //...or false + user: "mail_user_name", + pass: "mail_password", + noreply: "some_noreply_email", + contact: "some_contact_email", + }, + + // IDs of users allowed to post news and edit any problem + devs: [] };