1

所以我使用 mupx-letsencrypt 为我的网站获取 ssl。然后我使用了 mup deploy ,自从我进入域时收到 502 错误,当我直接访问 IP 地址时收到 503 错误。任何提示表示赞赏。

这是我的 mup.json 文件

  {
  // Server authentication info
  "servers": [
    {
      "host": "123.123.123.123",
      "username": "root",
      "password": "password",
      // or pem file (ssh based authentication)
      // WARNING: Keys protected by a passphrase are not supported
      "pem": "/home/[myUser]/.ssh/id_rsa",
      // Also, for non-standard ssh port use this
      //"sshOptions": { "port" : 49154 },
      // server specific environment variables
      "env": {}
    }
  ],

  // Install MongoDB on the server. Does not destroy the local MongoDB on future setups
  "setupMongo": true,

  // Application name (no spaces).
  "appName": "[appName]",

  // Location of app (local directory). This can reference '~' as the users home directory.
  // i.e., "app": "~/Meteor/my-app",
  // This is the same as the line below.
  "app": ".",

  // Configure environment
  // ROOT_URL must be set to your correct domain (https or http)
  "env": {
    "PORT": 80,
    "ROOT_URL": "https://example.com" //also tried with http://
  },

  // Meteor Up checks if the app comes online just after the deployment.
  // Before mup checks that, it will wait for the number of seconds configured below.
  "deployCheckWaitTime": 15,

  // show a progress bar while uploading.
  // Make it false when you deploy using a CI box.
  "enableUploadProgressBar": false,

  // If letsEncrypt object exists - Meteor Up will generate Let's encrypt
  // certificates and automatically renew it every hour.
  "letsEncrypt": {
    "domain": "example.com",
    "email": "myemail@gmail.com"
  }
}

我有一种感觉,当我尝试了各种不同的组合时,我忘记了一些不在此文件中的配置。

4

0 回答 0