zodern / meteor-up

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

Proxy does not work on Ubuntu 22.x, but works fine on 20.x with same config #1346

Open KoenLav opened 1 year ago

KoenLav commented 1 year ago

Version (mup --version): 1.5.5 - 15.10

Config

{
  "servers": {
    "one": {
      "host": "1.2.3.4",
      "username": "root"
    }
  },
  "app": {
    "name": "my-app",
    "path": "../../../",
    "servers": {
      "one": {}
    },
    "env": {
      "ROOT_URL": "https://subdomain.host.com",
      "MONGO_URL": "mongodb+srv://user:pass@subdomain.subdomain.host.com/production",
      "NODE_OPTIONS": "--max-old-space-size=3333",
      "VIRTUAL_HOST": "subdomain.host.com",
      "HTTPS_METHOD": "noredirect",
      "LETSENCRYPT_HOST": "subdomain.host.com",
      "LETSENCRYPT_EMAIL": "email@domain.com",
      "VIRTUAL_PORT": 3000,
      "HTTP_FORWARDED_COUNT": 1
    },
    "buildOptions": {
      "serverOnly": true,
      "debug": false,
      "buildLocation": "/tmp/mup-build"
    },
    "docker": {
      "image": "zodern/meteor",
      "prepareBundle": true,
      "useBuildKit": true,
      "stopAppDuringPrepareBundle": true,
      "imagePort": 3000
    },
    "deployCheckWaitTime": 300,
    "type": "meteor"
  },
  "proxy": {
    "domains": "subdomain.host.com",
    "ssl": {
      "letsEncryptEmail": "email@domain.com"
    }
  }
}

Result Visiting the domain, after deploying two apps on the same server, results in a 403 - Forbidden error.

Also the nginx proxy keeps restarting, because some of it's "vhost" configuration file is corrupt:

nginx.1 | 2023/07/06 10:02:56 [emerg] 28#28: no servers are inside upstream in /etc/nginx/conf.d/default.conf:65

KoenLav commented 1 year ago

It also seems related to zodern/nginx-proxy:1.0.0 vs zodern/nginx-proxy:1.1.0

Reproduction: