module.exports = {
  servers: {
    one: {
      // Server host name / IP address
      host: 'coauthor.csail.mit.edu',
      // Root-level username on server
      username: 'ubuntu',
      // Local SSH key to use to authenticate to server
      pem: "/afs/csail/u/e/edemaine/.ssh/private/id_rsa"
    }
  },

  // Meteor server
  meteor: {
    name: 'coauthor',
    // Location of the Coauthor source code (parent directory of this file)
    path: '/afs/csail/u/e/edemaine/Projects/coauthor',
    servers: {
      one: {}
    },
    docker: {
      image: 'abernix/meteord:node-12-base',
      stopAppDuringPrepareBundle: false
    },
    buildOptions: {
      serverOnly: true,
      buildLocation: '/scratch/coauthor-build'
    },
    env: {
      // Comment this out to upgrade the database (for Coauthor upgrades).
      // This can take a while on startup, so be sure to also increase
      // deployCheckWaitTime below.
      COAUTHOR_SKIP_UPGRADE_DB: '1',
      // Set to your public-facing URL
      ROOT_URL: 'https://coauthor.csail.mit.edu',
      // Set to your SMTP server, to enable Coauthor email notifications.
      // Comment out this line to turn off email notifications.
      MAIL_URL: 'smtp://coauthor.csail.mit.edu:25?ignoreTLS=true',
      // Default From address for mail notifications is
      // coauthor@deployed-host-name; set this to override:
      //MAIL_FROM: 'coauthor@coauthor.csail.mit.edu',
      // If you don't use MUP's MongoDB server, set this to your server:
      MONGO_URL: 'mongodb://mongodb/meteor',
      // You shouldn't need to change this:
      MONGO_OPLOG_URL: 'mongodb://mongodb/local',
      // Set to fill available RAM:
      NODE_OPTIONS: '--trace-warnings --max-old-space-size=8192'
    },
    // If you're upgrading the database, you probably need to increase this:
    deployCheckWaitTime: 200,
    //deployCheckWaitTime: 2000,
  },

  // Mongo server
  mongo: {
    // Mongo 4 has the advantage of free cloud monitoring
    // [https://docs.mongodb.com/manual/administration/monitoring/].
    // But you can also run an old version such as the default '3.4.1'.
    version: '4.4.4',
    oplog: true,
    port: 27017,
    servers: {
      one: {},
    },
  },

  // Reverse proxy for SSL
  proxy: {
    domains: 'coauthor.csail.mit.edu',
    ssl: {
      // The simple way to enable SSL on your server is Let's Encrypt.
      // Just specify your email address as follows:
      //letsEncryptEmail: 'you@email.com',
      // Alternatively, specify a certificate manually as follows:
      crt: '../../coauthor_csail_mit_edu.ssl/coauthor_csail_mit_edu.pem',
      key: '../../coauthor_csail_mit_edu.ssl/coauthor_csail_mit_edu.key',
      // Redirect all http traffic to the https site:
      forceSSL: true,
    },
    clientUploadLimit: '0', // disable upload limit
    nginxServerConfig: '../.proxy.config',
  },

  // Run 'npm install' before deploying, to ensure packages are up-to-date
  hooks: {
    'pre.deploy': {
      localCommand: 'npm install'
    }
  },
};

@@ -2432,18 +2432,16 @@
 :%0A      
-//
 letsEncr
@@ -2455,21 +2455,24 @@
 l: '
-you@email.com
+edemaine@mit.edu
 ',%0A 
@@ -2543,16 +2543,18 @@
 :%0A      
+//
 crt: '..
@@ -2619,16 +2619,18 @@
 ,%0A      
+//
 key: '..

Switch to letsencrypt