Ssl 我试图用mupx letsencrypt部署我的meteor网站,但在做了一次mup部署之后,一切都不起作用了

Ssl 我试图用mupx letsencrypt部署我的meteor网站,但在做了一次mup部署之后,一切都不起作用了,ssl,nginx,meteor,mup,Ssl,Nginx,Meteor,Mup,所以我使用mupx-letsencrypt为我的网站获取ssl。然后我使用了mup部署,自从我转到域时出现502错误,直接转到IP地址时出现503错误以来。任何提示,不胜感激 这是我的mup.json文件 { // Server authentication info "servers": [ { "host": "123.123.123.123", "username": "root", "password": "password",

所以我使用mupx-letsencrypt为我的网站获取ssl。然后我使用了mup部署,自从我转到域时出现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"
  }
}

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

您的
deployCheckWaitTime
有点短,为了更舒适,我会将其设置为120或180。502是否为“坏网关”错误?如果是,则表示您的nginx映像正在运行,但运行您的应用程序的docker实例没有运行。有时,移除docker容器并再次执行
mup设置
将修复mup设置和mupx letsencrypt设置到底有什么关系?我尝试了多次,也尝试了不同的服务器。增加了部署时间,但没有任何效果。还有其他提示吗?您的
deployCheckWaitTime
有点短,为了更舒适,我会将其设置为120或180。502是否为“坏网关”错误?如果是,则表示您的nginx映像正在运行,但运行您的应用程序的docker实例没有运行。有时,移除docker容器并再次执行
mup设置
将修复mup设置和mupx letsencrypt设置到底有什么关系?我尝试了多次,也尝试了不同的服务器。增加了部署时间,但没有任何效果。还有其他提示吗?