Big Bang
This commit is contained in:
17
config/app.config.js
Normal file
17
config/app.config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const app_config = {
|
||||
|
||||
/*
|
||||
* The name of the application.
|
||||
* Used through-out the application as the proper display name.
|
||||
*/
|
||||
name: env("APP_NAME", "Flitter"),
|
||||
|
||||
/*
|
||||
* URL of the application.
|
||||
* Can be used to generate fully-qualified links.
|
||||
*/
|
||||
url: env("APP_URL", "http://localhost:8000/"),
|
||||
|
||||
}
|
||||
|
||||
module.exports = app_config
|
||||
34
config/database.config.js
Normal file
34
config/database.config.js
Normal file
@@ -0,0 +1,34 @@
|
||||
const database_config = {
|
||||
|
||||
/*
|
||||
* The name of the database.
|
||||
*/
|
||||
name: env("DATABASE_NAME", 'flitter'),
|
||||
|
||||
/*
|
||||
* The hostname of the database server.
|
||||
* Should be fully-qualified or resolvable.
|
||||
*/
|
||||
host: env("DATABASE_HOST", 'localhost'),
|
||||
|
||||
/*
|
||||
* MongoDB port on the database host.
|
||||
*/
|
||||
port: env("DATABASE_PORT", '27017'),
|
||||
|
||||
auth: {
|
||||
|
||||
/*
|
||||
* Boolean true if the database connection requires auth.
|
||||
*/
|
||||
require: env("DATABASE_AUTH", false),
|
||||
|
||||
/*
|
||||
* MongoDB username and password.
|
||||
*/
|
||||
username: env("DATABASE_USERNAME", ''),
|
||||
password: env("DATABASE_PASSWORD", ''),
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = database_config
|
||||
61
config/server.config.js
Normal file
61
config/server.config.js
Normal file
@@ -0,0 +1,61 @@
|
||||
const server_config = {
|
||||
|
||||
/*
|
||||
* The server port.
|
||||
* Currently, Flitter supports HTTP natively.
|
||||
*/
|
||||
port: env("SERVER_PORT", 80),
|
||||
|
||||
/*
|
||||
* The type of environment the application is running in.
|
||||
* Usually, either "production" or "development".
|
||||
* Development mode may cause the application to output extra
|
||||
* debugging information not secure enough for production.
|
||||
*/
|
||||
environment: env("ENVIRONMENT", "production"),
|
||||
|
||||
logging: {
|
||||
|
||||
/*
|
||||
* The logging level. Usually, 1-4.
|
||||
* The higher the level, the more information is logged.
|
||||
*/
|
||||
level: env("LOGGING_LEVEL", 1)
|
||||
},
|
||||
|
||||
session: {
|
||||
|
||||
/*
|
||||
* The secret used to encrypt the session.
|
||||
* This should be set in the environment.
|
||||
*/
|
||||
secret: env("SECRET", "changeme")
|
||||
},
|
||||
|
||||
uploads: {
|
||||
|
||||
/*
|
||||
* Used by flitter-upload. Path for uploaded files.
|
||||
* Should be relative to the application root.
|
||||
*/
|
||||
destination: './uploads'
|
||||
},
|
||||
|
||||
ssl: {
|
||||
enable: (env("SSL_ENABLE") ? (env("SSL_ENABLE") === 'true') : false),
|
||||
|
||||
/*
|
||||
* Path to your domain's certificate file.
|
||||
* This should contain any intermediate certificates as well.
|
||||
*/
|
||||
cert_file: env("SSL_CERT_FILE", 'cert.pem'),
|
||||
|
||||
/*
|
||||
* Path to your domain's certificate key.
|
||||
*/
|
||||
key_file: env("SSL_KEY_FILE", 'cert.key'),
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
module.exports = server_config
|
||||
Reference in New Issue
Block a user