UNPKG

lolo-backend

Version:

Lolo Backend is a REST Framework and provides an automatic asynchronous CRUD backend server generator based on your models' definitions and validation rules for Node.js and MongoDB.

58 lines (48 loc) 1.39 kB
# MongoDB server settings: db: host: 'localhost' port: 27017 user: 'user_database' pass: 'pass_database' name: 'database_name' # Web server settings: webserver: host : 'localhost' http_enabled : true http_port : 3001 https_enabled : false https_port : 8443 # SSL settings (Only if https_enabled is true): ssl_certificates: key : './certificates/my_cert.key' cert : './certificates/my_cert.crt' ca : false # Set CORS and CORS whitelist: cors_enabled: false cors_whitelist : ['http://example.com:8080','https://another-example.com:443'] # Determine whether to use verbose mode: verbose_log_enabled: true # Set your secret token: # For your safety change this value please. secret_token: 'MY_SECRET_TOKEN' # Establish JWT credentials for service consumers: jwt_credentials: 1: id: '54a8ce618e91b0b13665e2f9' username: 'angular-frontend' password: 'clave.segura.1' time_exp: '1d' 2: id: '605a3f8282d6f81a5bbbc57a' username: 'mobile-app' password: 'clave.segura.2' time_exp: '2d' # Set the language of the responses: language: 'EN' # Establish your models and their names: models: users: './models/users' # Determine whether to use custom routes: custom_routes_enabled: true # Set your custom routes file (Only if custom_routes_enabled is true): custom_routes_file: './routes/custom_routes'