diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-12-20 00:11:18 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-12-20 00:11:18 +0100 |
| commit | 92ccd82c73463fa0b67996dc9212e992f90a1454 (patch) | |
| tree | 456f16a2a88c3f9613c9eaf3dcdf3876aa36d689 /config/config.js | |
| parent | 55fd5e33b1430fd6498f476490da6b5fa6abd70c (diff) | |
Diffstat (limited to 'config/config.js')
| -rw-r--r-- | config/config.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/config/config.js b/config/config.js deleted file mode 100644 index ddfdb41..0000000 --- a/config/config.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -const Getenv = require('getenv'); -const Dotenv = require('dotenv'); - -Dotenv.config(); - -const internals = {}; - -module.exports = internals.Config = { - port: Getenv.int('LGTM_PORT', 1728), // Port to listen on - staticDirectory: Getenv('LGTM_STATIC_DIRECTORY', 'static'), // Location of static assets - templateDirectory: Getenv('LGTM_TEMPLATE_DIRECTORY', 'templates'), // Location of templates - - // Config to connect to mysql - mysql: { - host: Getenv('LGTM_MYSQL_HOST', 'localhost'), - port: Getenv('LGTM_MYSQL_PORT', 3306), - user: Getenv('LGTM_MYSQL_USER'), - password: Getenv('LGTM_MYSQL_PASSWORD'), - database: Getenv('LGTM_MYSQL_DATABASE'), - tableName: Getenv('LGTM_MYSQL_TABLE_NAME', 'lgtm') // table that will be used to fetch logs - } -}; |