Refactored - now includes fullstack AUTH
This commit is contained in:
16
server/constants/index.js
Normal file
16
server/constants/index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const ORIGIN = '*'
|
||||
const PORT = process.env.PORT || 8080
|
||||
|
||||
// for "atlas" edit MONGO_URI in -> .env file || for "community server" edit <MyDatabase>
|
||||
const MONGO_URI = process.env.MONGO_URI || 'mongodb://localhost:27017/MyDatabase'
|
||||
const MONGO_OPTIONS = {}
|
||||
|
||||
const JWT_SECRET = process.env.JWT_SECRET || 'unsafe_secret'
|
||||
|
||||
module.exports = {
|
||||
ORIGIN,
|
||||
PORT,
|
||||
MONGO_URI,
|
||||
MONGO_OPTIONS,
|
||||
JWT_SECRET,
|
||||
}
|
||||
Reference in New Issue
Block a user