{"size": 1221, "ext": "js", "max_stars_repo_path": "services/notification/src/config.js", "max_stars_repo_name": "aleksandra-b-t/FightPandemics", "max_stars_repo_stars_event_min_datetime": "2020-04-13T19:17:36.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-14T19:55:55.000Z", "max_issues_repo_path": "services/notification/src/config.js", "max_issues_repo_name": "ddveloper/FightPandemics", "max_issues_repo_issues_event_min_datetime": "2020-04-13T03:19:56.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-21T10:29:03.000Z", "max_forks_repo_path": "services/notification/src/config.js", "max_forks_repo_name": "ddveloper/FightPandemics", "max_forks_repo_forks_event_min_datetime": "2020-04-14T20:25:08.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-10T05:36:59.000Z"}
{"max_stars_count": 135, "max_issues_count": 2102, "max_forks_count": 205, "avg_line_length": 30.525, "max_line_length": 62, "alphanum_fraction": 0.7223587224}
require("dotenv").config();

const config = {
  appName: `fp-notification-${process.env.NODE_ENV || "dev"}`,
  baseUrl: process.env.BASE_URL,
  database: {
    database: process.env.DATABASE_NAME,
    host: process.env.DATABASE_HOST,
    instantUnreadLookbackInterval: Number(
      process.env.INSTANT_UNREAD_LOOKBACK_INTERVAL || 5,
    ),
    retryWrites: process.env.DATABASE_RETRY_WRITES === "true",
    password: process.env.DATABASE_PASSWORD,
    port: process.env.DATABASE_PORT,
    protocol: process.env.DATABASE_PROTOCOL || "mongodb",
    username: process.env.DATABASE_USERNAME,
  },
  errorNotifier: {
    url: process.env.ERROR_NOTIFIER_URL,
  },
  logger: {
    enabled: process.env.EXTERNAL_LOGGER_ENABLED === "true",
    host: process.env.EXTERNAL_LOGGER_HOST,
    level: process.env.LOG_LEVEL || "debug",
    port: Number(process.env.EXTERNAL_LOGGER_PORT),
  },
  mailService: {
    apiKeyId: process.env.SES_AWS_ACCESS_KEY_ID,
    apiKey: process.env.SES_AWS_SECRET_ACCESS_KEY,
    fromEmailAddress: process.env.FROM_EMAIL_ADDRESS,
    region: process.env.SES_AWS_REGION,
  },
  nodeEnv: process.env.NODE_ENV,
  unsubscribeTokenKey: process.env.UNSUBSCRIBE_TOKEN_KEY,
};

module.exports = {
  config,
};
