zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.28k stars 279 forks source link

app cant be reached when ssl proxy is specified #1283

Open pociej opened 2 years ago

pociej commented 2 years ago

Mup version (mup --version):

1.5.5 Mup config

js
{
  "servers": {
    "one": {
      "host": "1.2.3.4",
      "username": "root",
      "pem": "~/.ssh/pem"
    }
  },
  "app": {
    "name": "my-app",
    "path": "../../",
    "servers": {
      "one": {}
    },
    "buildOptions": {
      "serverOnly": true,
      "buildLocation": "/var/folders/cc/4vgdtyfs2nqcpccc2wnxvfyw0000gn/T/mup-meteor-804f29dc-f73f-4563-8251-abf724c16e8d",
      "cleanBuildLocation": true
    },
    "env": {
      "ROOT_URL": "https://subdomain.host.com",
      "MONGO_URL": "mongodb+srv://user:pass@subdomain.subdomain.host.com/admin_production",
      "VIRTUAL_HOST": "subdomain.host.com",
      "HTTPS_METHOD": "redirect",
      "LETSENCRYPT_HOST": "subdomain.host.com",
      "LETSENCRYPT_EMAIL": "email@domain.com",
      "VIRTUAL_PORT": 3000,
      "HTTP_FORWARDED_COUNT": 1
    },
    "docker": {
      "image": "abernix/meteord:node-8.4.0-base",
      "stopAppDuringPrepareBundle": true,
      "imagePort": 3000
    },
    "enableUploadProgressBar": true,
    "type": "meteor"
  },
  "proxy": {
    "domains": "subdomain.host.com",
    "ssl": {
      "letsEncryptEmail": "email@domain.com",
      "forceSSL": true
    }
  }
}

Without proxy deploy works, but when i add proxy to mup.js it doest. Mup doesnt give me any error, i see success message from mup, also mup logs show no error everything works. However app in not reachable, neither using domain nor directly ip address. In both cases i got ERR_CONNECTION_REFUSED. Removing proxy from mup.js solves the problem, but obviously it is not a solution.

mikkelking commented 2 years ago

Did you do a mup setup again after making changes? It may be that you didn't have a proxy before, and this lets mup set one up for you.